Add x86 legalization for SIMD bnot

This commit is contained in:
Andrew Brown
2019-10-02 10:24:20 -07:00
parent 4c56516d3f
commit 1f728c1797
4 changed files with 41 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
test legalizer
set enable_simd
target x86_64 skylake
function %bnot_b32x4(b32x4) -> b32x4 {
ebb0(v0: b32x4):
v1 = bnot v0
; check: v2 = vconst.b32x4 0xffffffffffffffffffffffffffffffff
; nextln: v1 = bxor v2, v0
return v1
}

View File

@@ -0,0 +1,11 @@
test rodata
set enable_simd
target x86_64 skylake
function %bnot_b32x4(b32x4) -> b32x4 {
ebb0(v0: b32x4):
v1 = bnot v0
return v1
}
; sameln: [FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF, FF]