aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/glsl_tests/frexp.glsl
blob: d6295a2e43c586a577e698762cb1447a24eba5e9 (plain)
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: {{^}}@frexp:
; GCN: main
; GCN: v_interp_mov
; GCN-DAG: v_frexp_mant_f32
; GCN-DAG: v_frexp_exp_i32_f32
; GCN-NEXT: epilog

#shader fs frexp
#version 400
flat in float f;
void main() {
    gl_FragColor.x = frexp(f, gl_FragColor.y);
}