Displaying 2 results from an estimated 2 matches for "tls_addr64".
Did you mean:
tls_addr
2012 Aug 17
1
[LLVMdev] Generate data16 assembly instruction for TLS with PIC
...ruction in my assembly file.
(ps. If I build it with "llc test.ll", the assembly file will not have
data16 instruction)
I search the llvm project and find some clues in this
file: lib/Target/X86/X86MCInstLower.cpp
static void LowerTlsAddr(...)
{
bool is64Bits = MI.getOpcode() == X86::TLS_addr64;
....
if (is64Bits) {
MCInst prefix;
prefix.setOpcode(X86::DATA16_PREFIX);
....
}
....
}
I think it is the logic to generate data16 instruction, but I wonder why
gcc report warning. Is it a LLVM's bug?
Thanks for your time in advance :D
-------------- ne...
2012 Dec 17
0
[LLVMdev] LLVMdev Digest, Vol 98, Issue 33
...If I build it with "llc test.ll", the assembly file will not have
> data16 instruction)
>
> I search the llvm project and find some clues in this
> file: lib/Target/X86/X86MCInstLower.cpp
> static void LowerTlsAddr(...)
> {
> bool is64Bits = MI.getOpcode() == X86::TLS_addr64;
> ....
> if (is64Bits) {
> MCInst prefix;
> prefix.setOpcode(X86::DATA16_PREFIX);
> ....
> }
> ....
> }
>
> I think it is the logic to generate data16 instruction, but I wonder why
> gcc report warning. Is it a LLVM's bug...