Add a null encoding for ireduce.i32.i64.

This conversion doesn't require any code, we're just looking at the bits
differently.
This commit is contained in:
Jakob Stoklund Olesen
2017-07-19 13:11:11 -07:00
parent f03f1e1898
commit 9f105145af
3 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
; Test code generation for WebAssembly type conversion operators.
test compile
set is_64bit=1
isa intel haswell
function %i32_wrap_i64(i64) -> i32 {
ebb0(v0: i64):
v1 = ireduce.i32 v0
return v1
}