-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test (currently failing) to check that Pascal char sets can sto…
…re all 256 possible values. Add the PowerPC ncg and mcg backend support to let the test actually run, including modifying a bunch of PowrePC libem functions so that they can be called from both ncg and mcg.
- Loading branch information
1 parent
1ea46f6
commit e7e29d3
Showing
10 changed files
with
221 additions
and
133 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "powerpc.h" | ||
|
||
.sect .text | ||
|
||
! Bounds check. Traps if the value is out of range. | ||
! Stack: ( descriptor value -- ) | ||
|
||
.define .rck | ||
.rck: | ||
lwz r3, 0 (sp) | ||
lwz r4, 4 (sp) | ||
addi sp, sp, 8 | ||
|
||
lwz r5, 0 (r3) | ||
cmp cr0, 0, r4, r5 | ||
bc IFTRUE, LT, .trap_erange | ||
|
||
lwz r5, 4 (r3) | ||
cmp cr0, 0, r4, r5 | ||
bc IFTRUE, GT, .trap_erange | ||
|
||
bclr ALWAYS, 0, 0 |
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
Oops, something went wrong.