[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / coff-relocations-diags.s
bloba3c7534ac9c65408cca7a74392d430e92f1d56d9
1 // RUN: not llvm-mc -triple aarch64-win32 -filetype=obj %s -o /dev/null 2>&1 | FileCheck %s
3 adrp x0, :got:symbol
4 // CHECK: error: relocation variant :got: unsupported on COFF targets
5 // CHECK-NEXT: adrp x0, :got:symbol
6 // CHECK-NEXT: ^
8 ldr x0, [x0, :got_lo12:symbol]
9 // CHECK: error: relocation variant :got_lo12: unsupported on COFF targets
10 // CHECK-NEXT: ldr x0, [x0, :got_lo12:symbol]
11 // CHECK-NEXT: ^
13 adrp x0, :tlsdesc:symbol
14 // CHECK: error: relocation variant :tlsdesc: unsupported on COFF targets
15 // CHECK-NEXT: adrp x0, :tlsdesc:symbol
16 // CHECK-NEXT: ^
17 add x0, x0, :tlsdesc_lo12:symbol
18 // CHECK: error: relocation variant :tlsdesc_lo12: unsupported on COFF targets
19 // CHECK-NEXT: add x0, x0, :tlsdesc_lo12:symbol
20 // CHECK-NEXT: ^
22 adrp x0, :gottprel:symbol
23 // CHECK: error: relocation variant :gottprel: unsupported on COFF targets
24 // CHECK-NEXT: adrp x0, :gottprel:symbol
25 // CHECK-NEXT: ^
26 ldr x0, [x0, :gottprel_lo12:symbol]
27 // CHECK: error: relocation variant :gottprel_lo12: unsupported on COFF targets
28 // CHECK-NEXT: ldr x0, [x0, :gottprel_lo12:symbol]
29 // CHECK-NEXT: ^
31 add x0, x0, #:dtprel_hi12:symbol, lsl #12
32 // CHECK: error: relocation variant :dtprel_hi12: unsupported on COFF targets
33 // CHECK-NEXT: add x0, x0, #:dtprel_hi12:symbol, lsl #12
34 // CHECK-NEXT: ^
35 add x0, x0, :dtprel_lo12:symbol
36 // CHECK: error: relocation variant :dtprel_lo12: unsupported on COFF targets
37 // CHECK-NEXT: add x0, x0, :dtprel_lo12:symbol
38 // CHECK-NEXT: ^
40 label:
41 movz x0, #:abs_g0:symbol
42 // CHECK: error: relocation type :abs_g0: unsupported on COFF targets
43 // CHECK-NEXT: movz x0, #:abs_g0:symbol
44 // CHECK-NEXT: ^
46 .section .rdata, "dr"
47 table:
48 .short label - table
49 // CHECK: error: Cannot represent this expression
50 // CHECK-NEXT: .short label - table
51 // CHECK-NEXT: ^