Legalize i64.const by breaking it into two i32.const, on 32-bits platforms;
This commit is contained in:
12
cranelift/filetests/filetests/legalizer/iconst-i64.clif
Normal file
12
cranelift/filetests/filetests/legalizer/iconst-i64.clif
Normal 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
|
||||
Reference in New Issue
Block a user