Files
wasmtime/cranelift/filetests/filetests/legalizer/popcnt-i128.clif
2020-05-25 20:03:24 +02:00

22 lines
469 B
Plaintext

test legalizer
target x86_64 haswell
function %foo() -> i128 {
block0:
v1 = iconst.i64 0x6400000042
v2 = iconst.i64 0x7F10100042
v3 = iconcat v1, v2
v4 = popcnt.i128 v3
return v4
}
; check: v1 = iconst.i64 0x0064_0000_0042
; check: v2 = iconst.i64 0x007f_1010_0042
; check: v3 = iconcat v1, v2
; check: v5 = popcnt v1
; check: v6 = popcnt v2
; check: v7 = iadd v5, v6
; check: v8 = iconst.i64 0
; check: v4 = iconcat v7, v8
; check: return v7, v8