aarch64: Implement bmask/bextend in ISLE (#4358)

* aarch64: Implement `bmask`/`bextend` in ISLE

* cranelift: Remove vector versions of `bextend`

* aarch64: Cleanup `bmask`/`bextend` documentation
This commit is contained in:
Afonso Bordado
2022-07-01 17:37:18 +01:00
committed by GitHub
parent 64759f04a4
commit 38ecd3744f
7 changed files with 63 additions and 60 deletions

View File

@@ -317,8 +317,8 @@ block0:
}
; block0:
; movz x2, #255
; sxtb w0, w2
; movz x1, #255
; sxtb w0, w1
; ret
function %bextend_b1() -> b32 {
@@ -329,8 +329,8 @@ block0:
}
; block0:
; movz x2, #1
; sbfx w0, w2, #0, #1
; movz x1, #1
; sbfx w0, w1, #0, #1
; ret
function %bnot_i32(i32) -> i32 {

View File

@@ -1,4 +1,7 @@
test interpret
test run
target aarch64
target s390x
function %bmask_b64_i64(b64) -> i64 {
block0(v0: b64):

View File

@@ -1,4 +1,6 @@
test interpret
test run
target aarch64
function %bextend_b1_b128(b1) -> b128 {
block0(v0: b1):

View File

@@ -1,4 +1,6 @@
test interpret
test run
target aarch64
function %bmask_b128_i128(b128) -> i128 {
block0(v0: b128):