• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s
2
3; FUNC-LABEL: {{^}}@min_f64:
4; GCN: main
5; GCN: v_interp_mov
6; GCN: v_interp_mov
7; GCN: v_interp_mov
8; GCN: v_interp_mov
9; GCN-NEXT: v_min_f64
10; GCN-NEXT: epilog
11
12#shader fs min_f64
13#version 400
14flat in dvec2 v;
15out uvec4 o;
16void main() {
17    o.xy = unpackDouble2x32(min(v.x, v.y));
18}
19
20
21; FUNC-LABEL: {{^}}@max_f64:
22; GCN: main
23; GCN: v_interp_mov
24; GCN: v_interp_mov
25; GCN: v_interp_mov
26; GCN: v_interp_mov
27; GCN-NEXT: v_max_f64
28; GCN-NEXT: epilog
29
30#shader fs max_f64
31#version 400
32flat in dvec2 v;
33out uvec4 o;
34void main() {
35    o.xy = unpackDouble2x32(max(v.x, v.y));
36}
37