Skip to content

Commit

Permalink
Fix extend test for AArch64
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Sep 29, 2021
1 parent 3fae9e5 commit 4b6d20d
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions cranelift/filetests/filetests/runtests/extend.clif
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,22 @@ test run
target aarch64
target arm
target s390x
; target x86_64 TODO: Not yet implemented on x86_64
target x86_64

function %uextend() -> b1 {
block0:
v0 = iconst.i32 0xffff_ee00
v1 = uextend.i64 v0
v2, v3 = isplit v1
v4 = icmp_imm eq v2, 0xffff_ee00
v5 = icmp_imm eq v3, 0
v6 = band v4, v5
return v6
v2 = icmp_imm eq v1, 0xffff_ee00
return v2
}
; run

function %sextend() -> b1 {
block0:
v0 = iconst.i32 0xffff_ee00
v1 = sextend.i64 v0
v2, v3 = isplit v1
v4 = icmp_imm eq v2, 0xffff_ee00
v5 = icmp_imm eq v3, 0xffff_ffff
v6 = band v4, v5
return v6
v2 = icmp_imm eq v1, 0xffff_ffff_ffff_ee00
return v2
}
; run

0 comments on commit 4b6d20d

Please sign in to comment.