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); }