@@ -9,20 +9,25 @@ body: |
9
9
bb.0:
10
10
liveins: $h0, $h1
11
11
; FP16-LABEL: name: s16_legal_with_full_fp16
12
- ; FP16: %a:_(s16) = COPY $h0
13
- ; FP16: %b:_(s16) = COPY $h1
14
- ; FP16: %maxnum:_(s16) = G_FMAXNUM %a, %b
15
- ; FP16: $h0 = COPY %maxnum(s16)
16
- ; FP16: RET_ReallyLR implicit $h0
12
+ ; FP16: liveins: $h0, $h1
13
+ ; FP16-NEXT: {{ $}}
14
+ ; FP16-NEXT: %a:_(s16) = COPY $h0
15
+ ; FP16-NEXT: %b:_(s16) = COPY $h1
16
+ ; FP16-NEXT: %maxnum:_(s16) = G_FMAXNUM %a, %b
17
+ ; FP16-NEXT: $h0 = COPY %maxnum(s16)
18
+ ; FP16-NEXT: RET_ReallyLR implicit $h0
19
+ ;
17
20
; NO-FP16-LABEL: name: s16_legal_with_full_fp16
18
- ; NO-FP16: %a:_(s16) = COPY $h0
19
- ; NO-FP16: %b:_(s16) = COPY $h1
20
- ; NO-FP16: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %a(s16)
21
- ; NO-FP16: [[FPEXT1:%[0-9]+]]:_(s32) = G_FPEXT %b(s16)
22
- ; NO-FP16: [[FMAXNUM:%[0-9]+]]:_(s32) = G_FMAXNUM [[FPEXT]], [[FPEXT1]]
23
- ; NO-FP16: %maxnum:_(s16) = G_FPTRUNC [[FMAXNUM]](s32)
24
- ; NO-FP16: $h0 = COPY %maxnum(s16)
25
- ; NO-FP16: RET_ReallyLR implicit $h0
21
+ ; NO-FP16: liveins: $h0, $h1
22
+ ; NO-FP16-NEXT: {{ $}}
23
+ ; NO-FP16-NEXT: %a:_(s16) = COPY $h0
24
+ ; NO-FP16-NEXT: %b:_(s16) = COPY $h1
25
+ ; NO-FP16-NEXT: [[FPEXT:%[0-9]+]]:_(s32) = G_FPEXT %a(s16)
26
+ ; NO-FP16-NEXT: [[FPEXT1:%[0-9]+]]:_(s32) = G_FPEXT %b(s16)
27
+ ; NO-FP16-NEXT: [[FMAXNUM:%[0-9]+]]:_(s32) = G_FMAXNUM [[FPEXT]], [[FPEXT1]]
28
+ ; NO-FP16-NEXT: %maxnum:_(s16) = G_FPTRUNC [[FMAXNUM]](s32)
29
+ ; NO-FP16-NEXT: $h0 = COPY %maxnum(s16)
30
+ ; NO-FP16-NEXT: RET_ReallyLR implicit $h0
26
31
%a:_(s16) = COPY $h0
27
32
%b:_(s16) = COPY $h1
28
33
%maxnum:_(s16) = G_FMAXNUM %a, %b
@@ -37,17 +42,22 @@ body: |
37
42
bb.0:
38
43
liveins: $s0, $s1
39
44
; FP16-LABEL: name: s32_legal
40
- ; FP16: %a:_(s32) = COPY $s0
41
- ; FP16: %b:_(s32) = COPY $s1
42
- ; FP16: %maxnum:_(s32) = G_FMAXNUM %a, %b
43
- ; FP16: $s0 = COPY %maxnum(s32)
44
- ; FP16: RET_ReallyLR implicit $s0
45
+ ; FP16: liveins: $s0, $s1
46
+ ; FP16-NEXT: {{ $}}
47
+ ; FP16-NEXT: %a:_(s32) = COPY $s0
48
+ ; FP16-NEXT: %b:_(s32) = COPY $s1
49
+ ; FP16-NEXT: %maxnum:_(s32) = G_FMAXNUM %a, %b
50
+ ; FP16-NEXT: $s0 = COPY %maxnum(s32)
51
+ ; FP16-NEXT: RET_ReallyLR implicit $s0
52
+ ;
45
53
; NO-FP16-LABEL: name: s32_legal
46
- ; NO-FP16: %a:_(s32) = COPY $s0
47
- ; NO-FP16: %b:_(s32) = COPY $s1
48
- ; NO-FP16: %maxnum:_(s32) = G_FMAXNUM %a, %b
49
- ; NO-FP16: $s0 = COPY %maxnum(s32)
50
- ; NO-FP16: RET_ReallyLR implicit $s0
54
+ ; NO-FP16: liveins: $s0, $s1
55
+ ; NO-FP16-NEXT: {{ $}}
56
+ ; NO-FP16-NEXT: %a:_(s32) = COPY $s0
57
+ ; NO-FP16-NEXT: %b:_(s32) = COPY $s1
58
+ ; NO-FP16-NEXT: %maxnum:_(s32) = G_FMAXNUM %a, %b
59
+ ; NO-FP16-NEXT: $s0 = COPY %maxnum(s32)
60
+ ; NO-FP16-NEXT: RET_ReallyLR implicit $s0
51
61
%a:_(s32) = COPY $s0
52
62
%b:_(s32) = COPY $s1
53
63
%maxnum:_(s32) = G_FMAXNUM %a, %b
@@ -62,17 +72,22 @@ body: |
62
72
bb.0:
63
73
liveins: $d0, $d1
64
74
; FP16-LABEL: name: s64_legal
65
- ; FP16: %a:_(s64) = COPY $d0
66
- ; FP16: %b:_(s64) = COPY $d1
67
- ; FP16: %maxnum:_(s64) = G_FMAXNUM %a, %b
68
- ; FP16: $d0 = COPY %maxnum(s64)
69
- ; FP16: RET_ReallyLR implicit $d0
75
+ ; FP16: liveins: $d0, $d1
76
+ ; FP16-NEXT: {{ $}}
77
+ ; FP16-NEXT: %a:_(s64) = COPY $d0
78
+ ; FP16-NEXT: %b:_(s64) = COPY $d1
79
+ ; FP16-NEXT: %maxnum:_(s64) = G_FMAXNUM %a, %b
80
+ ; FP16-NEXT: $d0 = COPY %maxnum(s64)
81
+ ; FP16-NEXT: RET_ReallyLR implicit $d0
82
+ ;
70
83
; NO-FP16-LABEL: name: s64_legal
71
- ; NO-FP16: %a:_(s64) = COPY $d0
72
- ; NO-FP16: %b:_(s64) = COPY $d1
73
- ; NO-FP16: %maxnum:_(s64) = G_FMAXNUM %a, %b
74
- ; NO-FP16: $d0 = COPY %maxnum(s64)
75
- ; NO-FP16: RET_ReallyLR implicit $d0
84
+ ; NO-FP16: liveins: $d0, $d1
85
+ ; NO-FP16-NEXT: {{ $}}
86
+ ; NO-FP16-NEXT: %a:_(s64) = COPY $d0
87
+ ; NO-FP16-NEXT: %b:_(s64) = COPY $d1
88
+ ; NO-FP16-NEXT: %maxnum:_(s64) = G_FMAXNUM %a, %b
89
+ ; NO-FP16-NEXT: $d0 = COPY %maxnum(s64)
90
+ ; NO-FP16-NEXT: RET_ReallyLR implicit $d0
76
91
%a:_(s64) = COPY $d0
77
92
%b:_(s64) = COPY $d1
78
93
%maxnum:_(s64) = G_FMAXNUM %a, %b
@@ -87,27 +102,32 @@ body: |
87
102
bb.0:
88
103
liveins: $q0, $q1
89
104
; FP16-LABEL: name: s128_libcall
90
- ; FP16: %a:_(s128) = COPY $q0
91
- ; FP16: %b:_(s128) = COPY $q1
92
- ; FP16: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp
93
- ; FP16: $q0 = COPY %a(s128)
94
- ; FP16: $q1 = COPY %b(s128)
95
- ; FP16: BL &fmaxl, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $q0, implicit $q1, implicit-def $q0
96
- ; FP16: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp
97
- ; FP16: %maxnum:_(s128) = COPY $q0
98
- ; FP16: $q0 = COPY %maxnum(s128)
99
- ; FP16: RET_ReallyLR implicit $q0
105
+ ; FP16: liveins: $q0, $q1
106
+ ; FP16-NEXT: {{ $}}
107
+ ; FP16-NEXT: %a:_(s128) = COPY $q0
108
+ ; FP16-NEXT: %b:_(s128) = COPY $q1
109
+ ; FP16-NEXT: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp
110
+ ; FP16-NEXT: $q0 = COPY %a(s128)
111
+ ; FP16-NEXT: $q1 = COPY %b(s128)
112
+ ; FP16-NEXT: BL &fmaxl, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $q0, implicit $q1, implicit-def $q0
113
+ ; FP16-NEXT: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp
114
+ ; FP16-NEXT: %maxnum:_(s128) = COPY $q0
115
+ ; FP16-NEXT: $q0 = COPY %maxnum(s128)
116
+ ; FP16-NEXT: RET_ReallyLR implicit $q0
117
+ ;
100
118
; NO-FP16-LABEL: name: s128_libcall
101
- ; NO-FP16: %a:_(s128) = COPY $q0
102
- ; NO-FP16: %b:_(s128) = COPY $q1
103
- ; NO-FP16: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp
104
- ; NO-FP16: $q0 = COPY %a(s128)
105
- ; NO-FP16: $q1 = COPY %b(s128)
106
- ; NO-FP16: BL &fmaxl, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $q0, implicit $q1, implicit-def $q0
107
- ; NO-FP16: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp
108
- ; NO-FP16: %maxnum:_(s128) = COPY $q0
109
- ; NO-FP16: $q0 = COPY %maxnum(s128)
110
- ; NO-FP16: RET_ReallyLR implicit $q0
119
+ ; NO-FP16: liveins: $q0, $q1
120
+ ; NO-FP16-NEXT: {{ $}}
121
+ ; NO-FP16-NEXT: %a:_(s128) = COPY $q0
122
+ ; NO-FP16-NEXT: %b:_(s128) = COPY $q1
123
+ ; NO-FP16-NEXT: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp
124
+ ; NO-FP16-NEXT: $q0 = COPY %a(s128)
125
+ ; NO-FP16-NEXT: $q1 = COPY %b(s128)
126
+ ; NO-FP16-NEXT: BL &fmaxl, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $q0, implicit $q1, implicit-def $q0
127
+ ; NO-FP16-NEXT: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp
128
+ ; NO-FP16-NEXT: %maxnum:_(s128) = COPY $q0
129
+ ; NO-FP16-NEXT: $q0 = COPY %maxnum(s128)
130
+ ; NO-FP16-NEXT: RET_ReallyLR implicit $q0
111
131
%a:_(s128) = COPY $q0
112
132
%b:_(s128) = COPY $q1
113
133
%maxnum:_(s128) = G_FMAXNUM %a, %b
0 commit comments