xref: /aosp_15_r20/external/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/log2.glsl (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s
2
3; FUNC-LABEL: {{^}}@log2:
4; GCN: main
5; GCN: v_interp_mov
6; GCN-NEXT: v_log_f32
7; GCN-NEXT: epilog
8
9#shader fs log2
10#version 400
11flat in float f;
12void main() {
13    gl_FragColor.x = log2(f);
14}
15