diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-08 17:47:41 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-08-08 17:47:41 +0000 |
commit | 71435a3975789de81a42e4a12d9fb29b28a46b81 (patch) | |
tree | 54e9870ad2f1406cffdd74597a97b13f62a85b82 | |
parent | caaa49336b47b542d7255a8455fbab2e14a20ec5 (diff) | |
download | external_llvm-71435a3975789de81a42e4a12d9fb29b28a46b81.zip external_llvm-71435a3975789de81a42e4a12d9fb29b28a46b81.tar.gz external_llvm-71435a3975789de81a42e4a12d9fb29b28a46b81.tar.bz2 |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78479 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86CodeEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index 8b60b86..03d871a 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -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); |