20 lines · plain
1// RUN: not llvm-mc -triple=x86_64-apple-darwin -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR2 3 mov %rax, thing4 mov %rax, thing@GOT-thing2@GOT5 mov %rax, (thing-thing2)(%rip)6 mov %rax, thing-thing7 mov %rax, thing-thing28 mov %rax, thing@PLT9 jmp thing@PLT10 mov %rax, thing@TLVP11 12// CHECK-ERROR: 3:19: error: 32-bit absolute addressing is not supported in 64-bit mode13// CHECK-ERROR: 4:28: error: expected relocatable expression14// CHECK-ERROR: 5:25: error: unsupported pc-relative relocation of difference15// CHECK-ERROR: 6:24: error: unsupported relocation with identical base16// CHECK-ERROR: 7:24: error: unsupported relocation with subtraction expression, symbol 'thing' can not be undefined in a subtraction expression17// CHECK-ERROR: 8:19: error: unsupported symbol modifier in relocation18// CHECK-ERROR: 9:13: error: unsupported symbol modifier in branch relocation19// CHECK-ERROR: 10:19: error: TLVP symbol modifier should have been rip-rel20