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.
riscv64: Add support for
bitcast.i128
This was accidentally broken in bytecodealliance#8692. It turns out bitcasts from i128 to i128 are legal, that PR accidentally reverted that use case. This is now added to a runtest to ensure it works on all platforms.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
test interpret | ||
test run | ||
set enable_llvm_abi_extensions=true | ||
target aarch64 | ||
target x86_64 | ||
target s390x | ||
target riscv64 | ||
target riscv64 has_c has_zcb | ||
|
||
function %bitcast_i128_i128(i128) -> i128 { | ||
block0(v0: i128): | ||
v1 = bitcast.i128 v0 | ||
return v1 | ||
} | ||
; run: %bitcast_i128_i128(0) == 0 |