Skip to content

Commit

Permalink
Update filetests
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottt committed Oct 12, 2022
1 parent 276e516 commit 863b94e
Show file tree
Hide file tree
Showing 166 changed files with 6,800 additions and 8,106 deletions.
6 changes: 2 additions & 4 deletions cranelift/filetests/filetests/isa/aarch64/atomic-cas.clif
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ function u0:0(i64, i32, i32) -> i8 system_v {
block0(v0: i64, v1: i32, v2: i32):
v6 = atomic_cas.i32 v0, v1, v2
v7 = icmp eq v6, v1
v8 = bint.i8 v7
return v8
return v7
}

; stp fp, lr, [sp, #-16]!
Expand All @@ -22,8 +21,7 @@ block0(v0: i64, v1: i32, v2: i32):
; mov x28, x2
; atomic_cas_loop_32 addr=x25, expect=x26, replacement=x28, oldval=x27, scratch=x24
; subs wzr, w27, w26
; cset x8, eq
; and w0, w8, #1
; cset x0, eq
; ldp x24, x25, [sp], #16
; ldp x26, x27, [sp], #16
; ldr x28, [sp], #16
Expand Down
18 changes: 9 additions & 9 deletions cranelift/filetests/filetests/isa/aarch64/bitops.clif
Original file line number Diff line number Diff line change
Expand Up @@ -304,28 +304,28 @@ block0(v0: i8):
; umov w0, v5.b[0]
; ret

function %bextend_b8() -> b32 {
function %sextend_i8() -> i32 {
block0:
v1 = bconst.b8 true
v2 = bextend.b32 v1
v1 = iconst.i8 -1
v2 = sextend.i32 v1
return v2
}

; block0:
; movz x1, #255
; movn x1, #0
; sxtb w0, w1
; ret

function %bextend_b1() -> b32 {
function %sextend_i8() -> i32 {
block0:
v1 = bconst.b1 true
v2 = bextend.b32 v1
v1 = iconst.i8 -1
v2 = sextend.i32 v1
return v2
}

; block0:
; movz x1, #1
; sbfx w0, w1, #0, #1
; movn x1, #0
; sxtb w0, w1
; ret

function %bnot_i32(i32) -> i32 {
Expand Down
Loading

0 comments on commit 863b94e

Please sign in to comment.