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