Skip to content

Commit 3a49706

Browse files
committed
[AArch64,test] Improve ilp32-diagnostics.s
1 parent f8b1ca4 commit 3a49706

File tree

1 file changed

+82
-104
lines changed

1 file changed

+82
-104
lines changed
Lines changed: 82 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,83 @@
11
// RUN: not llvm-mc -triple aarch64-none-linux-gnu_ilp32 \
2-
// RUN: < %s 2> %t2 -filetype=obj >/dev/null
3-
// RUN: FileCheck --check-prefix=CHECK-ERROR %s < %t2
4-
5-
.xword sym-.
6-
// CHECK-ERROR: error: ILP32 8 byte PC relative data relocation not supported (LP64 eqv: PREL64)
7-
// CHECK-ERROR: ^
8-
9-
.xword sym+16
10-
// CHECK-ERROR: error: ILP32 8 byte absolute data relocation not supported (LP64 eqv: ABS64)
11-
// CHECK-ERROR: ^
12-
13-
.xword sym@AUTH(da,42)
14-
// CHECK-ERROR: error: ILP32 8 byte absolute data relocation not supported (LP64 eqv: AUTH_ABS64)
15-
// CHECK-ERROR: ^
16-
17-
.xword sym@AUTH(da,42,addr)
18-
// CHECK-ERROR: error: ILP32 8 byte absolute data relocation not supported (LP64 eqv: AUTH_ABS64)
19-
// CHECK-ERROR: ^
20-
21-
movz x7, #:abs_g3:some_label
22-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G3)
23-
// CHECK-ERROR: movz x7, #:abs_g3:some_label
24-
// CHECK-ERROR: ^
25-
26-
movz x3, #:abs_g2:some_label
27-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G2)
28-
// CHECK-ERROR: movz x3, #:abs_g2:some_label
29-
// CHECK-ERROR: ^
30-
31-
movz x19, #:abs_g2_s:some_label
32-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_SABS_G2)
33-
// CHECK-ERROR: movz x19, #:abs_g2_s:some_label
34-
// CHECK-ERROR: ^
35-
36-
movk x5, #:abs_g2_nc:some_label
37-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G2_NC)
38-
// CHECK-ERROR: movk x5, #:abs_g2_nc:some_label
39-
// CHECK-ERROR: ^
40-
41-
movz x19, #:abs_g1_s:some_label
42-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_SABS_G1)
43-
// CHECK-ERROR: movz x19, #:abs_g1_s:some_label
44-
// CHECK-ERROR: ^
45-
46-
movk x5, #:abs_g1_nc:some_label
47-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G1_NC)
48-
// CHECK-ERROR: movk x5, #:abs_g1_nc:some_label
49-
// CHECK-ERROR: ^
50-
51-
movz x3, #:dtprel_g2:var
52-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLD_MOVW_DTPREL_G2)
53-
// CHECK-ERROR: movz x3, #:dtprel_g2:var
54-
// CHECK-ERROR: ^
55-
56-
movk x9, #:dtprel_g1_nc:var
57-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLD_MOVW_DTPREL_G1_NC)
58-
// CHECK-ERROR: movk x9, #:dtprel_g1_nc:var
59-
// CHECK-ERROR: ^
60-
61-
movz x3, #:tprel_g2:var
62-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLE_MOVW_TPREL_G2)
63-
// CHECK-ERROR: movz x3, #:tprel_g2:var
64-
// CHECK-ERROR: ^
65-
66-
movk x9, #:tprel_g1_nc:var
67-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLE_MOVW_TPREL_G1_NC)
68-
// CHECK-ERROR: movk x9, #:tprel_g1_nc:var
69-
// CHECK-ERROR: ^
70-
71-
movz x15, #:gottprel_g1:var
72-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSIE_MOVW_GOTTPREL_G1)
73-
// CHECK-ERROR: movz x15, #:gottprel_g1:var
74-
// CHECK-ERROR: ^
75-
76-
movk x13, #:gottprel_g0_nc:var
77-
// CHECK-ERROR: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSIE_MOVW_GOTTPREL_G0_NC)
78-
// CHECK-ERROR: movk x13, #:gottprel_g0_nc:var
79-
// CHECK-ERROR: ^
80-
81-
ldr x10, [x0, #:gottprel_lo12:var]
82-
// CHECK-ERROR: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC)
83-
// CHECK-ERROR: ldr x10, [x0, #:gottprel_lo12:var]
84-
// CHECK-ERROR: ^
85-
86-
ldr x24, [x23, #:got_lo12:sym]
87-
// CHECK-ERROR: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: LD64_GOT_LO12_NC)
88-
// CHECK-ERROR: ^
89-
90-
ldr x24, [x23, :gottprel_lo12:sym]
91-
// CHECK-ERROR: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC)
92-
// CHECK-ERROR: ^
93-
94-
ldr x10, [x0, #:gottprel_lo12:var]
95-
// CHECK-ERROR: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC)
96-
// CHECK-ERROR: ldr x10, [x0, #:gottprel_lo12:var]
97-
// CHECK-ERROR: ^
98-
99-
ldr x24, [x23, #:got_lo12:sym]
100-
// CHECK-ERROR: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: LD64_GOT_LO12_NC)
101-
// CHECK-ERROR: ^
102-
103-
ldr x24, [x23, :gottprel_lo12:sym]
104-
// CHECK-ERROR: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC)
105-
// CHECK-ERROR: ^
2+
// RUN: < %s 2> %t2 -filetype=obj >/dev/null
3+
// RUN: FileCheck --check-prefix=ERROR %s --implicit-check-not=error: < %t2
4+
5+
.xword sym-.
6+
// ERROR: [[#@LINE-1]]:8: error: ILP32 8 byte PC relative data relocation not supported (LP64 eqv: PREL64)
7+
8+
.xword sym+16
9+
// ERROR: [[#@LINE-1]]:8: error: ILP32 8 byte absolute data relocation not supported (LP64 eqv: ABS64)
10+
11+
.xword sym@AUTH(da,42)
12+
// ERROR: [[#@LINE-1]]:8: error: ILP32 8 byte absolute data relocation not supported (LP64 eqv: AUTH_ABS64)
13+
14+
.xword sym@AUTH(da,42,addr)
15+
// ERROR: [[#@LINE-1]]:8: error: ILP32 8 byte absolute data relocation not supported (LP64 eqv: AUTH_ABS64)
16+
17+
movz x7, #:abs_g3:some_label
18+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G3)
19+
// ERROR: movz x7, #:abs_g3:some_label
20+
21+
movz x3, #:abs_g2:some_label
22+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G2)
23+
// ERROR: movz x3, #:abs_g2:some_label
24+
25+
movz x19, #:abs_g2_s:some_label
26+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_SABS_G2)
27+
// ERROR: movz x19, #:abs_g2_s:some_label
28+
29+
movk x5, #:abs_g2_nc:some_label
30+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G2_NC)
31+
// ERROR: movk x5, #:abs_g2_nc:some_label
32+
33+
movz x19, #:abs_g1_s:some_label
34+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_SABS_G1)
35+
// ERROR: movz x19, #:abs_g1_s:some_label
36+
37+
movk x5, #:abs_g1_nc:some_label
38+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G1_NC)
39+
// ERROR: movk x5, #:abs_g1_nc:some_label
40+
41+
movz x3, #:dtprel_g2:var
42+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLD_MOVW_DTPREL_G2)
43+
// ERROR: movz x3, #:dtprel_g2:var
44+
45+
movk x9, #:dtprel_g1_nc:var
46+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLD_MOVW_DTPREL_G1_NC)
47+
// ERROR: movk x9, #:dtprel_g1_nc:var
48+
49+
movz x3, #:tprel_g2:var
50+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLE_MOVW_TPREL_G2)
51+
// ERROR: movz x3, #:tprel_g2:var
52+
53+
movk x9, #:tprel_g1_nc:var
54+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLE_MOVW_TPREL_G1_NC)
55+
// ERROR: movk x9, #:tprel_g1_nc:var
56+
57+
movz x15, #:gottprel_g1:var
58+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSIE_MOVW_GOTTPREL_G1)
59+
// ERROR: movz x15, #:gottprel_g1:var
60+
61+
movk x13, #:gottprel_g0_nc:var
62+
// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSIE_MOVW_GOTTPREL_G0_NC)
63+
// ERROR: movk x13, #:gottprel_g0_nc:var
64+
65+
ldr x10, [x0, #:gottprel_lo12:var]
66+
// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC)
67+
// ERROR: ldr x10, [x0, #:gottprel_lo12:var]
68+
69+
ldr x24, [x23, #:got_lo12:sym]
70+
// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: LD64_GOT_LO12_NC)
71+
72+
ldr x24, [x23, :gottprel_lo12:sym]
73+
// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC)
74+
75+
ldr x10, [x0, #:gottprel_lo12:var]
76+
// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC)
77+
// ERROR: ldr x10, [x0, #:gottprel_lo12:var]
78+
79+
ldr x24, [x23, #:got_lo12:sym]
80+
// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: LD64_GOT_LO12_NC)
81+
82+
ldr x24, [x23, :gottprel_lo12:sym]
83+
// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC)

0 commit comments

Comments
 (0)