Legalize i64.const by breaking it into two i32.const, on 32-bits platforms;

This commit is contained in:
Benjamin Bouvier
2019-08-30 13:01:03 +02:00
parent 6f1ed94e82
commit 3aa76b558c
5 changed files with 62 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
test legalizer
target i686
function %foo() -> i64 {
ebb0:
v1 = iconst.i64 0x6400000042
return v1
}
; check: v2 = iconst.i32 66
; check: v3 = iconst.i32 100
; check: v1 = iconcat v2, v3