Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSAILasm disassembles an illegal BRIG with an illegal store argument list without complaining #48

Closed
pjaaskel opened this issue Mar 24, 2016 · 3 comments
Assignees

Comments

@pjaaskel
Copy link

There's an illegal instruction in a BRIG:

st_align(4)_u8 9, 0, 0, 0, [$d0+8];

st takes only two arguments, this has somehow pushed in 5. HSAILasm can disassemble the BRIG, but cannot assemble it again:

$ HSAILasm -disassemble phsa-temp/program-0.brig
$ HSAILasm phsa-temp/program-0.hsail

  st_align(4)_u8  9, 0, 0, 0, [$d0+8];
                     ^

input(10,20): Invalid operand 1, expected: an address

See: HSAFoundation/gccbrig#4

@pjaaskel
Copy link
Author

The culprit:
z.brig.gz

@dpreobrazhensky
Copy link

A fix for this issue has just been pushed on GitHub

@pjaaskel
Copy link
Author

Verified. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants