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