-
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.
Merge pull request #47 from janvrany/pr/use-parametrized-tests
Use parametrized tests
- Loading branch information
Showing
18 changed files
with
406 additions
and
519 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
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 @@ | ||
Class { | ||
#name : #TRPPCRegister, | ||
#superclass : #TRRealRegister, | ||
#pools : [ | ||
'TRPPC64RegisterKinds' | ||
], | ||
#category : #'Tinyrossa-POWER-Codegen' | ||
} | ||
|
||
{ #category : #accessing } | ||
TRPPCRegister >> name [ | ||
kind == GPR ifTrue: [ | ||
^ 'gr', value name | ||
]. | ||
kind == FPR ifTrue: [ | ||
^ 'fp', value name | ||
]. | ||
kind == CCR ifTrue: [ | ||
^ 'cr', value name | ||
]. | ||
^ super name | ||
] |
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
21 changes: 21 additions & 0 deletions
21
src/Tinyrossa-Tests-POWER/TRPPC64PSABILinkage.extension.st
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,21 @@ | ||
Extension { #name : #TRPPC64PSABILinkage } | ||
|
||
{ #category : #'*Tinyrossa-Tests-POWER' } | ||
TRPPC64PSABILinkage >> parameterRegisters: kind [ | ||
"Return (ordered) list of parameter registers of given kind. | ||
Note, that this method is used by tests only, compiler | ||
does not use it." | ||
|
||
^ self parameterRegisters select: [:r | r kind = kind ] | ||
] | ||
|
||
{ #category : #'*Tinyrossa-Tests-POWER' } | ||
TRPPC64PSABILinkage >> returnRegisters: kind [ | ||
"Return (ordered) list of return registers of given kind. | ||
Note, that this method is used by tests only, compiler | ||
does not use it." | ||
|
||
^ { gr4 } select: [:r | r kind = kind ] | ||
] |
Oops, something went wrong.