PR gas/19744: Thumb-1 pcrop relocations don't work on Thumb-2 targets
[deliverable/binutils-gdb.git] / gas / testsuite / gas / arm / armv8-a-bad.s
CommitLineData
59d09be6
MGD
1 .syntax unified
2 .text
3 .arch armv8-a
4
5 // SWP
6 .arm
7 swp r0, r1, [r2]
dcbd0d71
MGD
8
9 // deprecated MCRs
10 mcr p15, 0, r0, c7, c5, 4
11 mcr p15, 0, r1, c7, c10, 4
12 mcr p15, 0, r2, c7, c10, 5
13 mrc p14, 6, r1, c0, c0, 0
14 mrc p14, 6, r0, c1, c0, 0
12e37cbc
MGD
15
16 // deprecated SETEND
17 setend be
18
19 .thumb
20 setend le
8884b720
MGD
21
22 // HLT A32
23 .arm
24 hlt 0x10000
25 hltne 0x1
26
27 // HLT T32
28 .thumb
29 hlt 64
30 it ne
31 hltne 0
9eb6c0f1 32
4b8c8c02 33 // STL A32
9eb6c0f1 34 .arm
4b8c8c02
RE
35 stlb pc, [r0]
36 stlb r0, [pc]
37 stlh pc, [r0]
38 stlh r0, [pc]
39 stl pc, [r0]
40 stl r0, [pc]
41 stlexb r1, pc, [r0]
42 stlexb r1, r0, [pc]
43 stlexb pc, r0, [r1]
44 stlexb r0, r0, [r1]
45 stlexb r0, r1, [r0]
46 stlexh r1, pc, [r0]
47 stlexh r1, r0, [pc]
48 stlexh pc, r0, [r1]
49 stlexh r0, r0, [r1]
50 stlexh r0, r1, [r0]
51 stlex r1, pc, [r0]
52 stlex r1, r0, [pc]
53 stlex pc, r0, [r1]
54 stlex r0, r0, [r1]
55 stlex r0, r1, [r0]
56 stlexd r1, lr, [r0]
57 stlexd r1, r0, [pc]
58 stlexd pc, r0, [r1]
59 stlexd r0, r0, [r1]
60 stlexd r0, r2, [r0]
61 stlexd r0, r1, [r2]
9eb6c0f1 62
4b8c8c02 63 // STL T32
9eb6c0f1 64 .thumb
4b8c8c02
RE
65 stlb pc, [r0]
66 stlb r0, [pc]
67 stlh pc, [r0]
68 stlh r0, [pc]
69 stl pc, [r0]
70 stl r0, [pc]
71 stlexb r1, pc, [r0]
72 stlexb r1, r0, [pc]
73 stlexb pc, r0, [r1]
74 stlexb r0, r0, [r1]
75 stlexb r0, r1, [r0]
76 stlexh r1, pc, [r0]
77 stlexh r1, r0, [pc]
78 stlexh pc, r0, [r1]
79 stlexh r0, r0, [r1]
80 stlexh r0, r1, [r0]
81 stlex r1, pc, [r0]
82 stlex r1, r0, [pc]
83 stlex pc, r0, [r1]
84 stlex r0, r0, [r1]
85 stlex r0, r1, [r0]
86 stlexd r1, lr, [r0]
87 stlexd r1, r0, [pc]
88 stlexd pc, r0, [r1]
89 stlexd r0, r0, [r1]
90 stlexd r0, r2, [r0]
91 stlexd r0, r1, [r2]
9eb6c0f1 92
4b8c8c02 93 // LDA A32
9eb6c0f1 94 .arm
4b8c8c02
RE
95 ldab pc, [r0]
96 ldab r0, [pc]
97 ldah pc, [r0]
98 ldah r0, [pc]
99 lda pc, [r0]
100 lda r0, [pc]
101 ldaexb pc, [r0]
102 ldaexb r0, [pc]
103 ldaexh pc, [r0]
104 ldaexh r0, [pc]
105 ldaex pc, [r0]
106 ldaex r0, [pc]
107 ldaexd lr, [r0]
108 ldaexd r0, [pc]
109 ldaexd r1, [r2]
9eb6c0f1 110
4b8c8c02 111 // LDA T32
9eb6c0f1 112 .thumb
4b8c8c02
RE
113 ldab pc, [r0]
114 ldab r0, [pc]
115 ldah pc, [r0]
116 ldah r0, [pc]
117 lda pc, [r0]
118 lda r0, [pc]
119 ldaexb pc, [r0]
120 ldaexb r0, [pc]
121 ldaexh pc, [r0]
122 ldaexh r0, [pc]
123 ldaex pc, [r0]
124 ldaex r0, [pc]
125 ldaexd r0, pc, [r0]
126 ldaexd pc, r0, [r0]
127 ldaexd r1, r0, [pc]
This page took 0.171555 seconds and 4 git commands to generate.