Files
wasmtime/cranelift/filetests/filetests/isa/x86/extend-i64.clif
whitequark 162fcd3d75 Legalize [su]extend.i64 to iconst/sshr_imm + iconcat.
This was already done for [su]extend.i128, and is necessary for
codegen for 32-bit x86.
2020-05-05 16:08:58 -07:00

38 lines
768 B
Plaintext

test compile
target i686
function u0:0() -> b1 {
block0:
v0 = iconst.i32 0xffff_ee00
; check: v0 = iconst.i32 0xffff_ee00
; nextln: v2 -> v0
v1 = uextend.i64 v0
; nextln: v7 = iconst.i32 0
; nextln: v3 -> v7
; nextln: v1 = iconcat v0, v7
v2, v3 = isplit v1
v4 = icmp_imm eq v2, 0xffff_ee00
v5 = icmp_imm eq v3, 0
v6 = band v4, v5
return v6
}
function u0:1() -> b1 {
block0:
v0 = iconst.i32 0xffff_ee00
; check: v0 = iconst.i32 0xffff_ee00
; nextln: v2 -> v0
v1 = sextend.i64 v0
; nextln: v10 = copy v0
; nextln: v7 = sshr_imm v10, 31
; nextln: v3 -> v7
v2, v3 = isplit v1
v4 = icmp_imm eq v2, 0xffff_ee00
v5 = icmp_imm eq v3, 0xffff_ffff
v6 = band v4, v5
return v6
}