diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-18 18:10:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-18 18:10:56 +0000 |
commit | 0f53cf22361d89690dcf58409decb43d2a3ad60f (patch) | |
tree | 13e1cb8f9e4c43935cf7072de0d8c5baa3845569 /test | |
parent | 1584390e550b1430fccfd100846844f9fdf6c15b (diff) | |
download | llvm-0f53cf22361d89690dcf58409decb43d2a3ad60f.tar.gz llvm-0f53cf22361d89690dcf58409decb43d2a3ad60f.tar.bz2 llvm-0f53cf22361d89690dcf58409decb43d2a3ad60f.tar.xz |
add a special relocation type for movq loads for object
files that produce special relocation types where the
linker changes movq's into lea's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/X86/x86_64-new-encoder.s | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/MC/AsmParser/X86/x86_64-new-encoder.s b/test/MC/AsmParser/X86/x86_64-new-encoder.s index 797558a81e..712803e41f 100644 --- a/test/MC/AsmParser/X86/x86_64-new-encoder.s +++ b/test/MC/AsmParser/X86/x86_64-new-encoder.s @@ -25,5 +25,13 @@ movq $12, foo(%rip) // CHECK: encoding: [0x48,0xc7,0x05,A,A,A,A,0x0c,0x00,0x00,0x00] // CHECK: fixup A - offset: 3, value: foo-8, kind: reloc_riprel_4byte -// CHECK: addq $-424, %rax # encoding: [0x48,0x05,0x58,0xfe,0xff,0xff] +// CHECK: addq $-424, %rax +// CHECK: encoding: [0x48,0x05,0x58,0xfe,0xff,0xff] addq $-424, %rax + + +// CHECK: movq _foo@GOTPCREL(%rip), %rax +// CHECK: encoding: [0x48,0x8b,0x05,A,A,A,A] +// CHECK: fixup A - offset: 3, value: _foo@GOTPCREL, kind: reloc_riprel_4byte_movq_load +movq _foo@GOTPCREL(%rip), %rax + |