-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
be able to translate operation tests on bit vectors (#755)
- Loading branch information
Showing
4 changed files
with
30 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
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,9 @@ | ||
def extern_const : BitVec 64 := | ||
(0xFFFF000012340000 : BitVec 64) | ||
|
||
def extern_add : BitVec 16 := | ||
(Add.add (0xFFFF : BitVec 16) (0x1234 : BitVec 16)) | ||
|
||
def initialize_registers : Unit := | ||
() | ||
|
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,12 @@ | ||
default Order dec | ||
|
||
$include <prelude.sail> | ||
|
||
function extern_const() -> bitvector(64) = { | ||
return 0xFFFF_0000_1234_0000 | ||
} | ||
|
||
function extern_add() -> bitvector(16) = { | ||
return 0xFFFF + 0x1234 | ||
} | ||
|