diff options
Diffstat (limited to 'src/gallium/drivers/radeonsi/glsl_tests/exp2.glsl')
-rw-r--r-- | src/gallium/drivers/radeonsi/glsl_tests/exp2.glsl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/glsl_tests/exp2.glsl b/src/gallium/drivers/radeonsi/glsl_tests/exp2.glsl new file mode 100644 index 00000000000..ff917052595 --- /dev/null +++ b/src/gallium/drivers/radeonsi/glsl_tests/exp2.glsl @@ -0,0 +1,14 @@ +; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s + +; FUNC-LABEL: {{^}}@exp2: +; GCN: main +; GCN: v_interp_mov +; GCN-NEXT: v_exp_f32 +; GCN-NEXT: epilog + +#shader fs exp2 +#version 400 +flat in float f; +void main() { + gl_FragColor.x = exp2(f); +} |