forked from OSchip/llvm-project
Use reloc_absolute_word_sext relocation for X86::MOV64(ri/mi)32 instructions,
since they are in 64 bit mode with i64immSExt32 imms. JIT is not affected since it handles both word absolute relocations in the same way llvm-svn: 78479
This commit is contained in:
parent
b26ab816a2
commit
f6448f57e6
|
@ -763,7 +763,7 @@ void Emitter<CodeEmitter>::emitInstruction(
|
|||
unsigned rt = Is64BitMode ? X86::reloc_pcrel_word
|
||||
: (IsPIC ? X86::reloc_picrel_word : X86::reloc_absolute_word);
|
||||
if (Opcode == X86::MOV64ri32)
|
||||
rt = X86::reloc_absolute_word; // FIXME: add X86II flag?
|
||||
rt = X86::reloc_absolute_word_sext; // FIXME: add X86II flag?
|
||||
if (MO1.isGlobal()) {
|
||||
bool NeedStub = isa<Function>(MO1.getGlobal());
|
||||
bool Indirect = gvNeedsNonLazyPtr(MO1, TM);
|
||||
|
@ -802,7 +802,7 @@ void Emitter<CodeEmitter>::emitInstruction(
|
|||
unsigned rt = Is64BitMode ? X86::reloc_pcrel_word
|
||||
: (IsPIC ? X86::reloc_picrel_word : X86::reloc_absolute_word);
|
||||
if (Opcode == X86::MOV64mi32)
|
||||
rt = X86::reloc_absolute_word; // FIXME: add X86II flag?
|
||||
rt = X86::reloc_absolute_word_sext; // FIXME: add X86II flag?
|
||||
if (MO.isGlobal()) {
|
||||
bool NeedStub = isa<Function>(MO.getGlobal());
|
||||
bool Indirect = gvNeedsNonLazyPtr(MO, TM);
|
||||
|
|
Loading…
Reference in New Issue