-
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.
Fixed a tracing bug with operands less than 32-bit (#59)
Signed-off-by: Nils Schubert <[email protected]> Co-authored-by: Philipp Grulich <[email protected]>
- Loading branch information
1 parent
0d38c25
commit 5faf0bc
Showing
16 changed files
with
76 additions
and
21 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 $0 $4 :i32 |
2 changes: 1 addition & 1 deletion
2
nautilus/test/data/expression-tests/after_ssa/int16AddExpression.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
B0($1:i16) | ||
CONST $2 5 :i16 | ||
ADD $3 $1 $2 :i32 | ||
ADD $3 $1 $2 :i16 | ||
RETURN $0 $3 :i16 |
2 changes: 1 addition & 1 deletion
2
nautilus/test/data/expression-tests/after_ssa/int8AddExpression.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
B0($1:i8) | ||
CONST $2 2 :i8 | ||
ADD $3 $2 $1 :i32 | ||
ADD $3 $2 $1 :i8 | ||
RETURN $0 $3 :i8 |
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 $1 $2 :i8 | ||
RETURN $0 $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 $0 $4 :i32 |
2 changes: 1 addition & 1 deletion
2
nautilus/test/data/expression-tests/tracing/int16AddExpression.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
B0($1:i16) | ||
CONST $2 5 :i16 | ||
ADD $3 $1 $2 :i32 | ||
ADD $3 $1 $2 :i16 | ||
RETURN $0 $3 :i16 |
2 changes: 1 addition & 1 deletion
2
nautilus/test/data/expression-tests/tracing/int8AddExpression.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
B0($1:i8) | ||
CONST $2 2 :i8 | ||
ADD $3 $2 $1 :i32 | ||
ADD $3 $2 $1 :i8 | ||
RETURN $0 $3 :i8 |
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 $0 $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
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