forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bytecodealliance#784 from julian-seward1/issue779
Only create copy_nop instructions for types for which an encoding exi…
- Loading branch information
Showing
5 changed files
with
67 additions
and
9 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
test compile | ||
target x86_64 | ||
|
||
; Filed as https://github.com/CraneStation/cranelift/issues/779 | ||
; | ||
; The copy_nop optimisation to reload (see Issue 773) was creating | ||
; copy_nop instructions for types for which there were no encoding. | ||
|
||
function u0:0(i64, i64, i64) system_v { | ||
sig0 = () system_v | ||
sig1 = (i16) system_v | ||
fn1 = u0:94 sig0 | ||
fn2 = u0:95 sig1 | ||
|
||
ebb0(v0: i64, v1: i64, v2: i64): | ||
v3 = iconst.i16 0 | ||
jump ebb1(v3) | ||
|
||
ebb1(v4: i16): | ||
call fn1() | ||
call fn2(v4) | ||
jump ebb1(v4) | ||
} |