forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cranelift: Register all functions in test file for interpreter (bytec…
…odealliance#4800) * cranelift: Implement `bnot` in interpreter * cranelift: Register all functions in test file for interpreter
- Loading branch information
Showing
6 changed files
with
135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
test interpret | ||
test run | ||
target x86_64 | ||
target aarch64 | ||
target s390x | ||
|
||
function %bnot_b1(b1) -> b1 { | ||
block0(v0: b1): | ||
v1 = bnot.b1 v0 | ||
return v1 | ||
} | ||
; run: %bnot_b1(false) == true | ||
; run: %bnot_b1(true) == false | ||
|
||
function %bnot_b8(b8) -> b8 { | ||
block0(v0: b8): | ||
v1 = bnot.b8 v0 | ||
return v1 | ||
} | ||
; run: %bnot_b8(false) == true | ||
; run: %bnot_b8(true) == false | ||
|
||
function %bnot_b16(b16) -> b16 { | ||
block0(v0: b16): | ||
v1 = bnot.b16 v0 | ||
return v1 | ||
} | ||
; run: %bnot_b16(false) == true | ||
; run: %bnot_b16(true) == false | ||
|
||
function %bnot_b32(b32) -> b32 { | ||
block0(v0: b32): | ||
v1 = bnot.b32 v0 | ||
return v1 | ||
} | ||
; run: %bnot_b32(false) == true | ||
; run: %bnot_b32(true) == false | ||
|
||
function %bnot_b64(b64) -> b64 { | ||
block0(v0: b64): | ||
v1 = bnot.b64 v0 | ||
return v1 | ||
} | ||
; run: %bnot_b64(false) == true | ||
; run: %bnot_b64(true) == false |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
test interpret | ||
test run | ||
target x86_64 | ||
target aarch64 | ||
|
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 interpret | ||
test run | ||
target s390x | ||
|
||
function %bnot_b128(b128) -> b128 { | ||
block0(v0: b128): | ||
v1 = bnot.b128 v0 | ||
return v1 | ||
} | ||
; run: %bnot_b128(false) == true | ||
; run: %bnot_b128(true) == false |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
test interpret | ||
test run | ||
set enable_llvm_abi_extensions=true | ||
target x86_64 | ||
|
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