Skip to content

Commit

Permalink
pulley: Don't include hex dumps in CLIF golden output
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alexcrichton committed Nov 22, 2024
1 parent 60ab850 commit a887cbd
Show file tree
Hide file tree
Showing 25 changed files with 822 additions and 818 deletions.
110 changes: 55 additions & 55 deletions cranelift/filetests/filetests/isa/pulley32/brif-icmp.clif
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ block2:
; ret
;
; Disassembled:
; 0: 05 00 01 0b 00 00 00 br_if_xeq32 x0, x1, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xeq32 x0, x1, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

function %brif_icmp_ne(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
Expand All @@ -57,11 +57,11 @@ block2:
; ret
;
; Disassembled:
; 0: 06 00 01 0b 00 00 00 br_if_xneq32 x0, x1, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xneq32 x0, x1, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

function %brif_icmp_ult(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
Expand All @@ -88,11 +88,11 @@ block2:
; ret
;
; Disassembled:
; 0: 09 00 01 0b 00 00 00 br_if_xult32 x0, x1, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xult32 x0, x1, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

function %brif_icmp_ule(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
Expand All @@ -119,11 +119,11 @@ block2:
; ret
;
; Disassembled:
; 0: 0a 00 01 0b 00 00 00 br_if_xulteq32 x0, x1, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xulteq32 x0, x1, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

function %brif_icmp_slt(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
Expand All @@ -150,11 +150,11 @@ block2:
; ret
;
; Disassembled:
; 0: 07 00 01 0b 00 00 00 br_if_xslt32 x0, x1, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xslt32 x0, x1, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

function %brif_icmp_sle(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
Expand All @@ -181,11 +181,11 @@ block2:
; ret
;
; Disassembled:
; 0: 08 00 01 0b 00 00 00 br_if_xslteq32 x0, x1, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xslteq32 x0, x1, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

function %brif_icmp_ugt(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
Expand All @@ -212,11 +212,11 @@ block2:
; ret
;
; Disassembled:
; 0: 09 01 00 0b 00 00 00 br_if_xult32 x1, x0, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xult32 x1, x0, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

function %brif_icmp_uge(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
Expand All @@ -243,11 +243,11 @@ block2:
; ret
;
; Disassembled:
; 0: 0a 01 00 0b 00 00 00 br_if_xulteq32 x1, x0, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xulteq32 x1, x0, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

function %brif_icmp_sgt(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
Expand All @@ -274,11 +274,11 @@ block2:
; ret
;
; Disassembled:
; 0: 07 01 00 0b 00 00 00 br_if_xslt32 x1, x0, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xslt32 x1, x0, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

function %brif_icmp_sge(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
Expand All @@ -305,11 +305,11 @@ block2:
; ret
;
; Disassembled:
; 0: 08 01 00 0b 00 00 00 br_if_xslteq32 x1, x0, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xslteq32 x1, x0, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

function %brif_uextend_icmp_eq(i32, i32) -> i32 {
block0(v0: i32, v1: i32):
Expand Down Expand Up @@ -337,9 +337,9 @@ block2:
; ret
;
; Disassembled:
; 0: 05 00 01 0b 00 00 00 br_if_xeq32 x0, x1, 0xb // target = 0xb
; 7: 14 00 01 xconst8 x0, 1
; a: 00 ret
; b: 14 00 02 xconst8 x0, 2
; e: 00 ret
; br_if_xeq32 x0, x1, 0xb // target = 0xb
; xconst8 x0, 1
; ret
; xconst8 x0, 2
; ret

86 changes: 43 additions & 43 deletions cranelift/filetests/filetests/isa/pulley32/brif.clif
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ block2:
; ret
;
; Disassembled:
; 0: 03 00 0a 00 00 00 br_if x0, 0xa // target = 0xa
; 6: 14 00 00 xconst8 x0, 0
; 9: 00 ret
; a: 14 00 01 xconst8 x0, 1
; d: 00 ret
; br_if x0, 0xa // target = 0xa
; xconst8 x0, 0
; ret
; xconst8 x0, 1
; ret

function %brif_i16(i16) -> i8 {
block0(v0: i16):
Expand All @@ -55,11 +55,11 @@ block2:
; ret
;
; Disassembled:
; 0: 03 00 0a 00 00 00 br_if x0, 0xa // target = 0xa
; 6: 14 00 00 xconst8 x0, 0
; 9: 00 ret
; a: 14 00 01 xconst8 x0, 1
; d: 00 ret
; br_if x0, 0xa // target = 0xa
; xconst8 x0, 0
; ret
; xconst8 x0, 1
; ret

function %brif_i32(i32) -> i8 {
block0(v0: i32):
Expand All @@ -85,11 +85,11 @@ block2:
; ret
;
; Disassembled:
; 0: 03 00 0a 00 00 00 br_if x0, 0xa // target = 0xa
; 6: 14 00 00 xconst8 x0, 0
; 9: 00 ret
; a: 14 00 01 xconst8 x0, 1
; d: 00 ret
; br_if x0, 0xa // target = 0xa
; xconst8 x0, 0
; ret
; xconst8 x0, 1
; ret

function %brif_i64(i64) -> i8 {
block0(v0: i64):
Expand All @@ -115,11 +115,11 @@ block2:
; ret
;
; Disassembled:
; 0: 03 00 0a 00 00 00 br_if x0, 0xa // target = 0xa
; 6: 14 00 00 xconst8 x0, 0
; 9: 00 ret
; a: 14 00 01 xconst8 x0, 1
; d: 00 ret
; br_if x0, 0xa // target = 0xa
; xconst8 x0, 0
; ret
; xconst8 x0, 1
; ret

function %brif_icmp_i8(i8, i8) -> i8 {
block0(v0: i8, v1: i8):
Expand Down Expand Up @@ -147,12 +147,12 @@ block2:
; ret
;
; Disassembled:
; 0: 20 05 04 xeq32 x5, x0, x1
; 3: 03 05 0a 00 00 00 br_if x5, 0xa // target = 0xd
; 9: 14 00 00 xconst8 x0, 0
; c: 00 ret
; d: 14 00 01 xconst8 x0, 1
; 10: 00 ret
; xeq32 x5, x0, x1
; br_if x5, 0xa // target = 0xd
; xconst8 x0, 0
; ret
; xconst8 x0, 1
; ret

function %brif_icmp_i16(i16, i16) -> i8 {
block0(v0: i16, v1: i16):
Expand Down Expand Up @@ -180,12 +180,12 @@ block2:
; ret
;
; Disassembled:
; 0: 21 05 04 xneq32 x5, x0, x1
; 3: 03 05 0a 00 00 00 br_if x5, 0xa // target = 0xd
; 9: 14 00 00 xconst8 x0, 0
; c: 00 ret
; d: 14 00 01 xconst8 x0, 1
; 10: 00 ret
; xneq32 x5, x0, x1
; br_if x5, 0xa // target = 0xd
; xconst8 x0, 0
; ret
; xconst8 x0, 1
; ret

function %brif_icmp_i32(i32, i32) -> i8 {
block0(v0: i32, v1: i32):
Expand All @@ -212,11 +212,11 @@ block2:
; ret
;
; Disassembled:
; 0: 07 00 01 0b 00 00 00 br_if_xslt32 x0, x1, 0xb // target = 0xb
; 7: 14 00 00 xconst8 x0, 0
; a: 00 ret
; b: 14 00 01 xconst8 x0, 1
; e: 00 ret
; br_if_xslt32 x0, x1, 0xb // target = 0xb
; xconst8 x0, 0
; ret
; xconst8 x0, 1
; ret

function %brif_icmp_i64(i64, i64) -> i8 {
block0(v0: i64, v1: i64):
Expand Down Expand Up @@ -244,10 +244,10 @@ block2:
; ret
;
; Disassembled:
; 0: 1f 25 00 xulteq64 x5, x1, x0
; 3: 03 05 0a 00 00 00 br_if x5, 0xa // target = 0xd
; 9: 14 00 00 xconst8 x0, 0
; c: 00 ret
; d: 14 00 01 xconst8 x0, 1
; 10: 00 ret
; xulteq64 x5, x1, x0
; br_if x5, 0xa // target = 0xd
; xconst8 x0, 0
; ret
; xconst8 x0, 1
; ret

Loading

0 comments on commit a887cbd

Please sign in to comment.