Add x86 SIMD band

This commit is contained in:
Andrew Brown
2019-09-30 11:44:31 -07:00
parent 96d51cb1e8
commit 4cdc1e76a4
3 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
test binemit
set enable_simd
target x86_64 skylake
function %bor_b16x8(b16x8, b16x8) -> b16x8 {
ebb0(v0: b16x8 [%xmm2], v1: b16x8 [%xmm1]):
[-, %xmm2] v2 = bor v0, v1 ; bin: 66 0f eb d1
return v2
}
function %band_b64x2(b64x2, b64x2) -> b64x2 {
ebb0(v0: b64x2 [%xmm6], v1: b64x2 [%xmm3]):
[-, %xmm6] v2 = band v0, v1 ; bin: 66 0f db f3
return v2
}