-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Tracing) Wrong data type in tracing
Fixed a bug during tracing of arithmetical operators containing operands with less than 32-bit. They were traced with there respective bit size and also the resulting val<> was of the respective bit size, but they were traced as 32-bit. We changed the `#define COMMON_RETURN_TYPE` to use the actual bit size. Signed-off-by: Nils Schubert <[email protected]>
- Loading branch information
1 parent
7adef5c
commit 6bd4061
Showing
11 changed files
with
71 additions
and
16 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
4 changes: 4 additions & 0 deletions
4
nautilus/test/data/expression-tests/after_ssa/addInt8AndInt32.trace
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,4 @@ | ||
B0($1:i8,$2:i32) | ||
CAST $3 $1 :i32 | ||
ADD $4 $3 $2 :i32 | ||
RETURN $4 :i32 |
3 changes: 3 additions & 0 deletions
3
nautilus/test/data/expression-tests/after_ssa/subInt8AndInt8.trace
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,3 @@ | ||
B0($1:i8, $2:i8): | ||
SUB $3:i8, $1:i8, $2:i8 | ||
RETURN $3 :i8 |
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,8 @@ | ||
NautilusIr { | ||
execute() { | ||
Block_0($1:i8, $2:i32): | ||
$3 = $1 cast_to i32 :i32 | ||
$4 = $3 + $2 :i32 | ||
return ($4) :i32 | ||
} | ||
} //NESIR |
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,7 @@ | ||
NautilusIr { | ||
execute() { | ||
Block_0($1:i8, $2:i8): | ||
$3 = $1 - $2 :i8 | ||
return ($3) :i8 | ||
} | ||
} //NESIR |
4 changes: 4 additions & 0 deletions
4
nautilus/test/data/expression-tests/tracing/addInt8AndInt32.trace
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,4 @@ | ||
B0($1:i8,$2:i32) | ||
CAST $3 $1 :i32 | ||
ADD $4 $3 $2 :i32 | ||
RETURN $4 :i32 |
3 changes: 3 additions & 0 deletions
3
nautilus/test/data/expression-tests/tracing/subInt8AndInt8.trace
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,3 @@ | ||
B0($1:i8,$2:i8) | ||
SUB $3 $1 $2 :i8 | ||
RETURN $3 :i8 |
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