summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/glsl_tests/bitcount.glsl
blob: fc9a1268b187b4da2c1c716222fa13569d468d23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}