xref: /aosp_15_r20/external/llvm/test/MC/X86/error-reloc.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: not llvm-mc -triple x86_64-pc-linux %s -o %t.o -filetype=obj 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker        .quad foo@gotpcrel
4*9880d681SAndroid Build Coastguard Worker// CHECK:      32 bit reloc applied to a field with a different size
5*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: .quad foo@gotpcrel
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker        .quad foo@plt
8*9880d681SAndroid Build Coastguard Worker// CHECK:      32 bit reloc applied to a field with a different size
9*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: .quad foo@plt
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker        .quad foo@tlsld
12*9880d681SAndroid Build Coastguard Worker// CHECK:      32 bit reloc applied to a field with a different size
13*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: .quad foo@tlsld
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker        .quad foo@gottpoff
16*9880d681SAndroid Build Coastguard Worker// CHECK:      32 bit reloc applied to a field with a different size
17*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: .quad foo@gottpoff
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker        .quad foo@tlsgd
20*9880d681SAndroid Build Coastguard Worker// CHECK:      32 bit reloc applied to a field with a different size
21*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: .quad foo@tlsgd
22