blob: 8952eaae4d7e39cfef5a5b3b668480fbfb33ee2d (
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
33
34
35
36
|
; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s
; FUNC-LABEL: {{^}}@min_f64:
; GCN: main
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN-NEXT: v_min_f64
; GCN-NEXT: epilog
#shader fs min_f64
#version 400
flat in dvec2 v;
out uvec4 o;
void main() {
o.xy = unpackDouble2x32(min(v.x, v.y));
}
; FUNC-LABEL: {{^}}@max_f64:
; GCN: main
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN-NEXT: v_max_f64
; GCN-NEXT: epilog
#shader fs max_f64
#version 400
flat in dvec2 v;
out uvec4 o;
void main() {
o.xy = unpackDouble2x32(max(v.x, v.y));
}
|