Skip to content

Commit 6bc7c44

Browse files
authored
pulley: Don't include hex dumps in CLIF golden output (#9664)
As opcodes are added/removed this causes a lot of churn in these tests, so skip the hex dump/offsets and instead just print the instructions
1 parent 60ab850 commit 6bc7c44

25 files changed

+822
-818
lines changed

cranelift/filetests/filetests/isa/pulley32/brif-icmp.clif

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ block2:
2626
; ret
2727
;
2828
; Disassembled:
29-
; 0: 05 00 01 0b 00 00 00 br_if_xeq32 x0, x1, 0xb // target = 0xb
30-
; 7: 14 00 01 xconst8 x0, 1
31-
; a: 00 ret
32-
; b: 14 00 02 xconst8 x0, 2
33-
; e: 00 ret
29+
; br_if_xeq32 x0, x1, 0xb // target = 0xb
30+
; xconst8 x0, 1
31+
; ret
32+
; xconst8 x0, 2
33+
; ret
3434

3535
function %brif_icmp_ne(i32, i32) -> i32 {
3636
block0(v0: i32, v1: i32):
@@ -57,11 +57,11 @@ block2:
5757
; ret
5858
;
5959
; Disassembled:
60-
; 0: 06 00 01 0b 00 00 00 br_if_xneq32 x0, x1, 0xb // target = 0xb
61-
; 7: 14 00 01 xconst8 x0, 1
62-
; a: 00 ret
63-
; b: 14 00 02 xconst8 x0, 2
64-
; e: 00 ret
60+
; br_if_xneq32 x0, x1, 0xb // target = 0xb
61+
; xconst8 x0, 1
62+
; ret
63+
; xconst8 x0, 2
64+
; ret
6565

6666
function %brif_icmp_ult(i32, i32) -> i32 {
6767
block0(v0: i32, v1: i32):
@@ -88,11 +88,11 @@ block2:
8888
; ret
8989
;
9090
; Disassembled:
91-
; 0: 09 00 01 0b 00 00 00 br_if_xult32 x0, x1, 0xb // target = 0xb
92-
; 7: 14 00 01 xconst8 x0, 1
93-
; a: 00 ret
94-
; b: 14 00 02 xconst8 x0, 2
95-
; e: 00 ret
91+
; br_if_xult32 x0, x1, 0xb // target = 0xb
92+
; xconst8 x0, 1
93+
; ret
94+
; xconst8 x0, 2
95+
; ret
9696

9797
function %brif_icmp_ule(i32, i32) -> i32 {
9898
block0(v0: i32, v1: i32):
@@ -119,11 +119,11 @@ block2:
119119
; ret
120120
;
121121
; Disassembled:
122-
; 0: 0a 00 01 0b 00 00 00 br_if_xulteq32 x0, x1, 0xb // target = 0xb
123-
; 7: 14 00 01 xconst8 x0, 1
124-
; a: 00 ret
125-
; b: 14 00 02 xconst8 x0, 2
126-
; e: 00 ret
122+
; br_if_xulteq32 x0, x1, 0xb // target = 0xb
123+
; xconst8 x0, 1
124+
; ret
125+
; xconst8 x0, 2
126+
; ret
127127

128128
function %brif_icmp_slt(i32, i32) -> i32 {
129129
block0(v0: i32, v1: i32):
@@ -150,11 +150,11 @@ block2:
150150
; ret
151151
;
152152
; Disassembled:
153-
; 0: 07 00 01 0b 00 00 00 br_if_xslt32 x0, x1, 0xb // target = 0xb
154-
; 7: 14 00 01 xconst8 x0, 1
155-
; a: 00 ret
156-
; b: 14 00 02 xconst8 x0, 2
157-
; e: 00 ret
153+
; br_if_xslt32 x0, x1, 0xb // target = 0xb
154+
; xconst8 x0, 1
155+
; ret
156+
; xconst8 x0, 2
157+
; ret
158158

159159
function %brif_icmp_sle(i32, i32) -> i32 {
160160
block0(v0: i32, v1: i32):
@@ -181,11 +181,11 @@ block2:
181181
; ret
182182
;
183183
; Disassembled:
184-
; 0: 08 00 01 0b 00 00 00 br_if_xslteq32 x0, x1, 0xb // target = 0xb
185-
; 7: 14 00 01 xconst8 x0, 1
186-
; a: 00 ret
187-
; b: 14 00 02 xconst8 x0, 2
188-
; e: 00 ret
184+
; br_if_xslteq32 x0, x1, 0xb // target = 0xb
185+
; xconst8 x0, 1
186+
; ret
187+
; xconst8 x0, 2
188+
; ret
189189

190190
function %brif_icmp_ugt(i32, i32) -> i32 {
191191
block0(v0: i32, v1: i32):
@@ -212,11 +212,11 @@ block2:
212212
; ret
213213
;
214214
; Disassembled:
215-
; 0: 09 01 00 0b 00 00 00 br_if_xult32 x1, x0, 0xb // target = 0xb
216-
; 7: 14 00 01 xconst8 x0, 1
217-
; a: 00 ret
218-
; b: 14 00 02 xconst8 x0, 2
219-
; e: 00 ret
215+
; br_if_xult32 x1, x0, 0xb // target = 0xb
216+
; xconst8 x0, 1
217+
; ret
218+
; xconst8 x0, 2
219+
; ret
220220

221221
function %brif_icmp_uge(i32, i32) -> i32 {
222222
block0(v0: i32, v1: i32):
@@ -243,11 +243,11 @@ block2:
243243
; ret
244244
;
245245
; Disassembled:
246-
; 0: 0a 01 00 0b 00 00 00 br_if_xulteq32 x1, x0, 0xb // target = 0xb
247-
; 7: 14 00 01 xconst8 x0, 1
248-
; a: 00 ret
249-
; b: 14 00 02 xconst8 x0, 2
250-
; e: 00 ret
246+
; br_if_xulteq32 x1, x0, 0xb // target = 0xb
247+
; xconst8 x0, 1
248+
; ret
249+
; xconst8 x0, 2
250+
; ret
251251

252252
function %brif_icmp_sgt(i32, i32) -> i32 {
253253
block0(v0: i32, v1: i32):
@@ -274,11 +274,11 @@ block2:
274274
; ret
275275
;
276276
; Disassembled:
277-
; 0: 07 01 00 0b 00 00 00 br_if_xslt32 x1, x0, 0xb // target = 0xb
278-
; 7: 14 00 01 xconst8 x0, 1
279-
; a: 00 ret
280-
; b: 14 00 02 xconst8 x0, 2
281-
; e: 00 ret
277+
; br_if_xslt32 x1, x0, 0xb // target = 0xb
278+
; xconst8 x0, 1
279+
; ret
280+
; xconst8 x0, 2
281+
; ret
282282

283283
function %brif_icmp_sge(i32, i32) -> i32 {
284284
block0(v0: i32, v1: i32):
@@ -305,11 +305,11 @@ block2:
305305
; ret
306306
;
307307
; Disassembled:
308-
; 0: 08 01 00 0b 00 00 00 br_if_xslteq32 x1, x0, 0xb // target = 0xb
309-
; 7: 14 00 01 xconst8 x0, 1
310-
; a: 00 ret
311-
; b: 14 00 02 xconst8 x0, 2
312-
; e: 00 ret
308+
; br_if_xslteq32 x1, x0, 0xb // target = 0xb
309+
; xconst8 x0, 1
310+
; ret
311+
; xconst8 x0, 2
312+
; ret
313313

314314
function %brif_uextend_icmp_eq(i32, i32) -> i32 {
315315
block0(v0: i32, v1: i32):
@@ -337,9 +337,9 @@ block2:
337337
; ret
338338
;
339339
; Disassembled:
340-
; 0: 05 00 01 0b 00 00 00 br_if_xeq32 x0, x1, 0xb // target = 0xb
341-
; 7: 14 00 01 xconst8 x0, 1
342-
; a: 00 ret
343-
; b: 14 00 02 xconst8 x0, 2
344-
; e: 00 ret
340+
; br_if_xeq32 x0, x1, 0xb // target = 0xb
341+
; xconst8 x0, 1
342+
; ret
343+
; xconst8 x0, 2
344+
; ret
345345

cranelift/filetests/filetests/isa/pulley32/brif.clif

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ block2:
2525
; ret
2626
;
2727
; Disassembled:
28-
; 0: 03 00 0a 00 00 00 br_if x0, 0xa // target = 0xa
29-
; 6: 14 00 00 xconst8 x0, 0
30-
; 9: 00 ret
31-
; a: 14 00 01 xconst8 x0, 1
32-
; d: 00 ret
28+
; br_if x0, 0xa // target = 0xa
29+
; xconst8 x0, 0
30+
; ret
31+
; xconst8 x0, 1
32+
; ret
3333

3434
function %brif_i16(i16) -> i8 {
3535
block0(v0: i16):
@@ -55,11 +55,11 @@ block2:
5555
; ret
5656
;
5757
; Disassembled:
58-
; 0: 03 00 0a 00 00 00 br_if x0, 0xa // target = 0xa
59-
; 6: 14 00 00 xconst8 x0, 0
60-
; 9: 00 ret
61-
; a: 14 00 01 xconst8 x0, 1
62-
; d: 00 ret
58+
; br_if x0, 0xa // target = 0xa
59+
; xconst8 x0, 0
60+
; ret
61+
; xconst8 x0, 1
62+
; ret
6363

6464
function %brif_i32(i32) -> i8 {
6565
block0(v0: i32):
@@ -85,11 +85,11 @@ block2:
8585
; ret
8686
;
8787
; Disassembled:
88-
; 0: 03 00 0a 00 00 00 br_if x0, 0xa // target = 0xa
89-
; 6: 14 00 00 xconst8 x0, 0
90-
; 9: 00 ret
91-
; a: 14 00 01 xconst8 x0, 1
92-
; d: 00 ret
88+
; br_if x0, 0xa // target = 0xa
89+
; xconst8 x0, 0
90+
; ret
91+
; xconst8 x0, 1
92+
; ret
9393

9494
function %brif_i64(i64) -> i8 {
9595
block0(v0: i64):
@@ -115,11 +115,11 @@ block2:
115115
; ret
116116
;
117117
; Disassembled:
118-
; 0: 03 00 0a 00 00 00 br_if x0, 0xa // target = 0xa
119-
; 6: 14 00 00 xconst8 x0, 0
120-
; 9: 00 ret
121-
; a: 14 00 01 xconst8 x0, 1
122-
; d: 00 ret
118+
; br_if x0, 0xa // target = 0xa
119+
; xconst8 x0, 0
120+
; ret
121+
; xconst8 x0, 1
122+
; ret
123123

124124
function %brif_icmp_i8(i8, i8) -> i8 {
125125
block0(v0: i8, v1: i8):
@@ -147,12 +147,12 @@ block2:
147147
; ret
148148
;
149149
; Disassembled:
150-
; 0: 20 05 04 xeq32 x5, x0, x1
151-
; 3: 03 05 0a 00 00 00 br_if x5, 0xa // target = 0xd
152-
; 9: 14 00 00 xconst8 x0, 0
153-
; c: 00 ret
154-
; d: 14 00 01 xconst8 x0, 1
155-
; 10: 00 ret
150+
; xeq32 x5, x0, x1
151+
; br_if x5, 0xa // target = 0xd
152+
; xconst8 x0, 0
153+
; ret
154+
; xconst8 x0, 1
155+
; ret
156156

157157
function %brif_icmp_i16(i16, i16) -> i8 {
158158
block0(v0: i16, v1: i16):
@@ -180,12 +180,12 @@ block2:
180180
; ret
181181
;
182182
; Disassembled:
183-
; 0: 21 05 04 xneq32 x5, x0, x1
184-
; 3: 03 05 0a 00 00 00 br_if x5, 0xa // target = 0xd
185-
; 9: 14 00 00 xconst8 x0, 0
186-
; c: 00 ret
187-
; d: 14 00 01 xconst8 x0, 1
188-
; 10: 00 ret
183+
; xneq32 x5, x0, x1
184+
; br_if x5, 0xa // target = 0xd
185+
; xconst8 x0, 0
186+
; ret
187+
; xconst8 x0, 1
188+
; ret
189189

190190
function %brif_icmp_i32(i32, i32) -> i8 {
191191
block0(v0: i32, v1: i32):
@@ -212,11 +212,11 @@ block2:
212212
; ret
213213
;
214214
; Disassembled:
215-
; 0: 07 00 01 0b 00 00 00 br_if_xslt32 x0, x1, 0xb // target = 0xb
216-
; 7: 14 00 00 xconst8 x0, 0
217-
; a: 00 ret
218-
; b: 14 00 01 xconst8 x0, 1
219-
; e: 00 ret
215+
; br_if_xslt32 x0, x1, 0xb // target = 0xb
216+
; xconst8 x0, 0
217+
; ret
218+
; xconst8 x0, 1
219+
; ret
220220

221221
function %brif_icmp_i64(i64, i64) -> i8 {
222222
block0(v0: i64, v1: i64):
@@ -244,10 +244,10 @@ block2:
244244
; ret
245245
;
246246
; Disassembled:
247-
; 0: 1f 25 00 xulteq64 x5, x1, x0
248-
; 3: 03 05 0a 00 00 00 br_if x5, 0xa // target = 0xd
249-
; 9: 14 00 00 xconst8 x0, 0
250-
; c: 00 ret
251-
; d: 14 00 01 xconst8 x0, 1
252-
; 10: 00 ret
247+
; xulteq64 x5, x1, x0
248+
; br_if x5, 0xa // target = 0xd
249+
; xconst8 x0, 0
250+
; ret
251+
; xconst8 x0, 1
252+
; ret
253253

0 commit comments

Comments
 (0)