cranelift: Add basic i128 support in interpreter

This commit is contained in:
Afonso Bordado
2021-07-23 12:15:00 +01:00
committed by Andrew Brown
parent 084383f60a
commit a2fb019ba7
7 changed files with 95 additions and 35 deletions

View File

@@ -1,3 +1,4 @@
test interpret
test run
target aarch64
; target s390x TODO: Not yet implemented on s390x

View File

@@ -0,0 +1,17 @@
test interpret
test run
target aarch64
target s390x
target x86_64 machinst
function %iconcat_isplit(i64, i64) -> i64, i64 {
block0(v0: i64, v1: i64):
v2 = iconcat v0, v1
v3, v4 = isplit v2
return v3, v4
}
; run: %iconcat_isplit(0, 0) == [0, 0]
; run: %iconcat_isplit(1, 1) == [1, 1]
; run: %iconcat_isplit(0xFFFFFFFF_FFFFFFFF, 0) == [0xFFFFFFFF_FFFFFFFF, 0]
; run: %iconcat_isplit(0, 0xFFFFFFFF_FFFFFFFF) == [0, 0xFFFFFFFF_FFFFFFFF]
; run: %iconcat_isplit(0x01010101_01010101, 0x02020202_02020202) == [0x01010101_01010101, 0x02020202_02020202]

View File

@@ -1,3 +1,4 @@
test interpret
test run
target aarch64
; target s390x TODO: Not yet implemented on s390x