-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[M68k] Backend error "Unsupported asm expression. Only absolute address can be placed here." when using TLS #63162
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
Comments
@llvm/issue-subscribers-backend-m68k |
I think this is an issue where SelectionDAGISel selects the incorrect addressing mode for operands generated for TLS. Which actually appears in existing test cases as well.
The The culprit is likely to be |
Ah, I remember you mentioning issues with the instruction selection when dealing with multiplication. So, I guess this is just another occurrence of this issue then? |
Hi @glaubitz It would be great if you can provide the LLVM IR of this C++ snippet. |
No problem. See attached file. |
Uh oh!
There was an error while loading. Please reload this page.
I have been testing the new TLS code and was able to trigger a bug when compiling the following sample code:
In order to be able to build the code with the 68020 baseline, I used the following workaround:
Then I get:
This can be easily worked around by disabling the corresponding check in the backend code:
After that, I can successfully compile the sample code from
future.cc
. Maybe we can just drop the check?CC @mshockwave @0x59616e
The text was updated successfully, but these errors were encountered: