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.
…ytecodealliance#4548) Ported the existing implementation of the following Opcodes for AArch64 to ISLE: - `Fence` - `IsNull` - `IsInvalid` - `Debugtrap` Copyright (c) 2022 Arm Limited
- Loading branch information
1 parent
29d4edc
commit 5e3bb58
Showing
4 changed files
with
92 additions
and
34 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
42 changes: 42 additions & 0 deletions
42
cranelift/filetests/filetests/runtests/ref64-invalid-null.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 @@ | ||
; Tests for platforms with 64-bit references. | ||
test run | ||
target aarch64 | ||
target x86_64 | ||
target s390x | ||
|
||
function %is_null_true_r64() -> b1 { | ||
block0: | ||
v0 = null.r64 | ||
v1 = is_null v0 | ||
return v1 | ||
} | ||
; run: %is_null_true_r64() == true | ||
|
||
function %is_null_r64(i64) -> b1 { | ||
block0(v0: i64): | ||
v1 = raw_bitcast.r64 v0 | ||
v2 = is_null v1 | ||
return v2 | ||
} | ||
; run: %is_null_r64(256347) == false | ||
; run: %is_null_r64(-1) == false | ||
; run: %is_null_r64(0) == true | ||
|
||
function %is_invalid_r64(i64) -> b1 { | ||
block0(v0: i64): | ||
v1 = raw_bitcast.r64 v0 | ||
v2 = is_invalid v1 | ||
return v2 | ||
} | ||
; run: %is_invalid_r64(0xffffffffffffffff) == true | ||
; run: %is_invalid_r64(-1) == true | ||
; run: %is_invalid_r64(256347) == false | ||
; run: %is_invalid_r64(0) == false | ||
|
||
function %is_invalid_null_r64() -> b1 { | ||
block0: | ||
v0 = null.r64 | ||
v1 = is_invalid v0 | ||
return v1 | ||
} | ||
; run: %is_invalid_null_r64() == false |