summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/glsl_tests/minmax.u32.glsl
blob: 2e104de105aea4de042055e7552f35f2d7c2248c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s

; FUNC-LABEL: {{^}}@min_u32:
; GCN: main
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN-NEXT: v_min_u32
; GCN-NEXT: epilog

#shader fs min_u32
#version 400
flat in uvec2 v;
out uvec4 o;
void main() {
    o.x = min(v.x, v.y);
}


; FUNC-LABEL: {{^}}@max_u32:
; GCN: main
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN-NEXT: v_max_u32
; GCN-NEXT: epilog

#shader fs max_u32
#version 400
flat in uvec2 v;
out uvec4 o;
void main() {
    o.x = max(v.x, v.y);
}