1; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s
2
3; FUNC-LABEL: {{^}}@bitcount:
4; GCN: main
5; GCN: v_interp_mov
6; GCN-NEXT: v_bcnt_u32
7; GCN-NEXT: epilog
8
9#shader fs bitcount
10#version 400
11flat in int i;
12out ivec4 o;
13void main() {
14    o.x = bitCount(i);
15}
16