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