diff options
Diffstat (limited to 'llvm/test/MC/X86/error-reloc.s')
-rw-r--r-- | llvm/test/MC/X86/error-reloc.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/MC/X86/error-reloc.s b/llvm/test/MC/X86/error-reloc.s new file mode 100644 index 00000000000..8dd93de4e76 --- /dev/null +++ b/llvm/test/MC/X86/error-reloc.s @@ -0,0 +1,21 @@ +// RUN: not llvm-mc %s -o %t.o -filetype=obj 2>&1 | FileCheck %s + + .quad foo@gotpcrel +// CHECK: 32 bit reloc applied to a field with a different size +// CHECK-NEXT: .quad foo@gotpcrel + + .quad foo@plt +// CHECK: 32 bit reloc applied to a field with a different size +// CHECK-NEXT: .quad foo@plt + + .quad foo@tlsld +// CHECK: 32 bit reloc applied to a field with a different size +// CHECK-NEXT: .quad foo@tlsld + + .quad foo@gottpoff +// CHECK: 32 bit reloc applied to a field with a different size +// CHECK-NEXT: .quad foo@gottpoff + + .quad foo@tlsgd +// CHECK: 32 bit reloc applied to a field with a different size +// CHECK-NEXT: .quad foo@tlsgd |