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