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.
jumpthreading: Resolve alias on blockcalls
- Loading branch information
Showing
2 changed files
with
43 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
42 changes: 42 additions & 0 deletions
42
cranelift/filetests/filetests/jumpthreading/fuzz-alias-on-blockcall.clif
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,42 @@ | ||
test jump-threading precise-output | ||
target x86_64 | ||
|
||
function u1:0() -> i64, i64 sext, i32 sext, i8 sext, i16x8, i64 sext, i16x8, i16x8, i16x8, i16x8 fast { | ||
const0 = 0x00000000000000000000000000000000 | ||
|
||
block0: | ||
v0 = vconst.i16x8 const0 | ||
v6 = iconst.i32 0 | ||
v7 = iconst.i8 0 | ||
v14 = iconst.i64 0 | ||
v60 = vconst.i16x8 const0 | ||
v68 = iconst.i32 0 | ||
br_table v6, block1, [block2, block2, block1, block1, block4(v0), block4(v0), block4(v0), block4(v0), block4(v0), block4(v0), block4(v0), block4(v0), block4(v0), block4(v0), block4(v0), block4(v0)] | ||
|
||
block1 cold: | ||
trap user0 | ||
|
||
block2 cold: | ||
v28 = vconst.i16x8 const0 | ||
v44 -> v28 | ||
jump block4(v44) | ||
|
||
block4(v45: i16x8) cold: | ||
return v14, v14, v68, v7, v60, v14, v60, v60, v60, v60 | ||
} | ||
|
||
; function u1:0() -> i64, i64 sext, i32 sext, i8 sext, i16x8, i64 sext, i16x8, i16x8, i16x8, i16x8 fast { | ||
; const0 = 0x00000000000000000000000000000000 | ||
; | ||
; block0: | ||
; v0 = vconst.i16x8 const0 | ||
; v6 = iconst.i32 0 | ||
; v7 = iconst.i8 0 | ||
; v14 = iconst.i64 0 | ||
; v60 = vconst.i16x8 const0 | ||
; v68 = iconst.i32 0 | ||
; v69 = vconst.i16x8 const0 | ||
; v45 -> v69 | ||
; return v14, v14, v68, v7, v60, v14, v60, v60, v60, v60 ; v14 = 0, v14 = 0, v68 = 0, v7 = 0, v60 = const0, v14 = 0, v60 = const0, v60 = const0, v60 = const0, v60 = const0 | ||
; } | ||
|