Repository navigation
test: amigastubs passes arguments narrower than a long - #117
Merged
Merged
Conversation
ToUpper() with a UBYTE above 127, SetTaskPri() with a negative BYTE, and SplitName() with a UBYTE separator and a WORD result of -1, through the libamiga.a stubs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Merging as pre-approved: test only change |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The libamiga.a stubs pass every argument and result as a long. These checks cover the narrower types, where a stub that loads or extends the wrong part of a register gives a wrong value:
ToUpper(0xe9) == 0xc9: a UBYTE above 127, in and out (Latin-1 e acute).SetTaskPri(me, -5): a negative BYTE in, checked intc_Node.ln_Pri, and the old priority back out; then restored.SplitName("ab/cd", '/', ...): a UBYTE separator, and a WORD result: 3 after the first part, -1 after the last.Testing
make check-targetunder volamos: 0 of 46 fail, amigastubs included. It also passed earlier under volamos with four flag sets.vamos can't run it: it has no
SetTaskPri()orSplitName(). vamos isn't a supported simulator for these tests at this time; reported upstream as cnvogelg/amitools#283.🤖 Generated with Claude Code