-
Notifications
You must be signed in to change notification settings - Fork 13k
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
TLS with large code model on x86_64-apple-darwin asserts #80831
Comments
@llvm/issue-subscribers-backend-x86 Author: Nikita Popov (nikic)
```llvm
target triple = "x86_64-apple-macosx10.12.0"
@g = external thread_local global i8 define ptr @test() { !llvm.module.flags = !{!0} !0 = !{i32 1, !"Code Model", i32 4}
llc: /home/npopov/repos/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:35071: MachineBasicBlock *llvm::X86TargetLowering::EmitLoweredTLSCall(MachineInstr &, MachineBasicBlock *) const: Assertion `MI.getOperand(3).isGlobal() && "This should be a global"' failed.
|
Without large code model:
With large code model:
|
taking a look |
OpFlag and WrapperKind should be chosen consistently with each other in regards to PIC, otherwise we hit asserts later on. Broken by c04a05d. Fixes llvm#80831.
OpFlag and WrapperKind should be chosen consistently with each other in regards to PIC, otherwise we hit asserts later on. Broken by c04a05d. Fixes llvm#80831.
/cherry-pick 5a83bcc |
OpFlag and WrapperKind should be chosen consistently with each other in regards to PIC, otherwise we hit asserts later on. Broken by c04a05d. Fixes llvm#80831. (cherry picked from commit 5a83bcc)
/pull-request #81126 |
@EugeneZelenko Backports are tracked on PRs now. The backport issue is closed when the PR is created. |
@nikic: Shouldn't issue be reopened when starting backport? It was not a case here. |
OpFlag and WrapperKind should be chosen consistently with each other in regards to PIC, otherwise we hit asserts later on. Broken by c04a05d. Fixes llvm#80831. (cherry picked from commit 5a83bcc)
OpFlag and WrapperKind should be chosen consistently with each other in regards to PIC, otherwise we hit asserts later on. Broken by c04a05d. Fixes llvm#80831. (cherry picked from commit 5a83bcc)
OpFlag and WrapperKind should be chosen consistently with each other in regards to PIC, otherwise we hit asserts later on. Broken by c04a05d. Fixes llvm#80831. (cherry picked from commit 5a83bcc)
OpFlag and WrapperKind should be chosen consistently with each other in regards to PIC, otherwise we hit asserts later on. Broken by c04a05d. Fixes llvm#80831. (cherry picked from commit 5a83bcc)
Results in:
The text was updated successfully, but these errors were encountered: