1 2 3 4 5 6 7 8 9 10 11 12 13 14
; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s ; FUNC-LABEL: {{^}}@log2: ; GCN: main ; GCN: v_interp_mov ; GCN-NEXT: v_log_f32 ; GCN-NEXT: epilog #shader fs log2 #version 400 flat in float f; void main() { gl_FragColor.x = log2(f); }