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