aarch64: Implement lowering i128 select

This commit is contained in:
Afonso Bordado
2021-06-24 16:19:25 +01:00
parent 8172620763
commit 7a5948f729
3 changed files with 60 additions and 11 deletions

View File

@@ -53,3 +53,14 @@ block0(v0: i32, v1: i8, v2: i8):
; check: subs wzr, w0, #42
; nextln: csel x0, x1, x2, eq
function %i128_select(b1, i128, i128) -> i128 {
block0(v0: b1, v1: i128, v2: i128):
v3 = select.i128 v0, v1, v2
return v3
}
; check: subs wzr, w0, wzr
; nextln: csel x0, x2, x4, ne
; nextln: csel x1, x3, x5, ne