22 lines
362 B
Plaintext
22 lines
362 B
Plaintext
test run
|
|
set enable_simd
|
|
target x86_64
|
|
|
|
function %vconst_zeroes() -> b1 {
|
|
block0:
|
|
v0 = vconst.i8x16 0x00
|
|
v1 = extractlane v0, 4
|
|
v2 = icmp_imm eq v1, 0
|
|
return v2
|
|
}
|
|
; run
|
|
|
|
function %vconst_ones() -> b1 {
|
|
block0:
|
|
v0 = vconst.i8x16 0xffffffffffffffffffffffffffffffff
|
|
v1 = extractlane v0, 2
|
|
v2 = icmp_imm eq v1, 0xff
|
|
return v2
|
|
}
|
|
; run
|