1; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s
2
3; FUNC-LABEL: {{^}}@min_f32:
4; GCN: main
5; GCN: v_interp_mov
6; GCN: v_interp_mov
7; GCN-NEXT: v_min_f32
8; GCN-NEXT: epilog
9
10#shader fs min_f32
11#version 400
12flat in vec2 v;
13void main() {
14    gl_FragColor.x = min(v.x, v.y);
15}
16
17
18; FUNC-LABEL: {{^}}@max_f32:
19; GCN: main
20; GCN: v_interp_mov
21; GCN: v_interp_mov
22; GCN-NEXT: v_max_f32
23; GCN-NEXT: epilog
24
25#shader fs max_f32
26#version 400
27flat in vec2 v;
28void main() {
29    gl_FragColor.x = max(v.x, v.y);
30}
31