aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/glsl_tests/fma.glsl
blob: 727716fac4b16942a4b292818d8b6d7a0c00af0f (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: {{^}}@fma:
; GCN: main
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN-NEXT: v_mac_f32
; GCN-NEXT: epilog

#shader fs fma
#version 400
flat in vec3 v;
void main() {
    gl_FragColor.x = fma(v.x, v.y, v.z);
}