aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/glsl_tests/ldexp.glsl
blob: 920a0a5b86fb44d5b53065bb538214bd04542bf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s

; FUNC-LABEL: {{^}}@ldexp:
; GCN: main
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN-NEXT: v_ldexp_f32
; GCN-NEXT: epilog

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