aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/glsl_tests/minmax.i32.glsl
blob: e8468a085c37450c8bc795ba885161bb0169072d (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_i32:
; GCN: main
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN-NEXT: v_min_i32
; GCN-NEXT: epilog

#shader fs min_i32
#version 400
flat in ivec2 v;
out ivec4 o;
void main() {
    o.x = min(v.x, v.y);
}


; FUNC-LABEL: {{^}}@max_i32:
; GCN: main
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN-NEXT: v_max_i32
; GCN-NEXT: epilog

#shader fs max_i32
#version 400
flat in ivec2 v;
out ivec4 o;
void main() {
    o.x = max(v.x, v.y);
}