forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a null encoding for ireduce.i32.i64.
This conversion doesn't require any code, we're just looking at the bits differently.
- Loading branch information
Jakob Stoklund Olesen
committed
Jul 19, 2017
1 parent
13190fd
commit 444f955
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters