[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / Mips / macro-la.s
blobc419d64b3918527276b478400cbb695280e05dd0
1 # RUN: llvm-mc %s -triple=mips-unknown-linux -show-encoding -mcpu=mips32r2 | \
2 # RUN: FileCheck %s --check-prefixes=CHECK,O32
3 # RUN: llvm-mc %s -triple=mips-unknown-linux -show-encoding -mcpu=mips32r6 | \
4 # RUN: FileCheck %s --check-prefixes=CHECK,O32
5 # RUN: llvm-mc %s -triple=mips64-unknown-linux -show-encoding -mcpu=mips64r2 -target-abi=n32 | \
6 # RUN: FileCheck %s --check-prefixes=CHECK,N32
7 # RUN: llvm-mc %s -triple=mips64-unknown-linux -show-encoding -mcpu=mips64r6 -target-abi=n32 | \
8 # RUN: FileCheck %s --check-prefixes=CHECK,N32
10 # N64 should be acceptable too but we cannot convert la to dla yet.
12 la $5, 0x00000001 # CHECK: addiu $5, $zero, 1 # encoding: [0x24,0x05,0x00,0x01]
13 la $5, 0x00000002 # CHECK: addiu $5, $zero, 2 # encoding: [0x24,0x05,0x00,0x02]
14 la $5, 0x00004000 # CHECK: addiu $5, $zero, 16384 # encoding: [0x24,0x05,0x40,0x00]
15 la $5, 0x00008000 # CHECK: ori $5, $zero, 32768 # encoding: [0x34,0x05,0x80,0x00]
16 la $5, 0xffffffff # CHECK: addiu $5, $zero, -1 # encoding: [0x24,0x05,0xff,0xff]
17 la $5, 0xfffffffe # CHECK: addiu $5, $zero, -2 # encoding: [0x24,0x05,0xff,0xfe]
18 la $5, 0xffffc000 # CHECK: addiu $5, $zero, -16384 # encoding: [0x24,0x05,0xc0,0x00]
19 la $5, 0xffff8000 # CHECK: addiu $5, $zero, -32768 # encoding: [0x24,0x05,0x80,0x00]
21 la $5, 0x00010000 # CHECK: lui $5, 1 # encoding: [0x3c,0x05,0x00,0x01]
22 la $5, 0x00020000 # CHECK: lui $5, 2 # encoding: [0x3c,0x05,0x00,0x02]
23 la $5, 0x40000000 # CHECK: lui $5, 16384 # encoding: [0x3c,0x05,0x40,0x00]
24 la $5, 0x80000000 # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
25 la $5, 0xffff0000 # CHECK: lui $5, 65535 # encoding: [0x3c,0x05,0xff,0xff]
26 la $5, 0xfffe0000 # CHECK: lui $5, 65534 # encoding: [0x3c,0x05,0xff,0xfe]
27 la $5, 0xc0000000 # CHECK: lui $5, 49152 # encoding: [0x3c,0x05,0xc0,0x00]
28 la $5, 0x80000000 # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
30 la $5, 0x00010001 # CHECK: lui $5, 1 # encoding: [0x3c,0x05,0x00,0x01]
31 # CHECK: ori $5, $5, 1 # encoding: [0x34,0xa5,0x00,0x01]
32 la $5, 0x00020001 # CHECK: lui $5, 2 # encoding: [0x3c,0x05,0x00,0x02]
33 # CHECK: ori $5, $5, 1 # encoding: [0x34,0xa5,0x00,0x01]
34 la $5, 0x40000001 # CHECK: lui $5, 16384 # encoding: [0x3c,0x05,0x40,0x00]
35 # CHECK: ori $5, $5, 1 # encoding: [0x34,0xa5,0x00,0x01]
36 la $5, 0x80000001 # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
37 # CHECK: ori $5, $5, 1 # encoding: [0x34,0xa5,0x00,0x01]
38 la $5, 0x00010002 # CHECK: lui $5, 1 # encoding: [0x3c,0x05,0x00,0x01]
39 # CHECK: ori $5, $5, 2 # encoding: [0x34,0xa5,0x00,0x02]
40 la $5, 0x00020002 # CHECK: lui $5, 2 # encoding: [0x3c,0x05,0x00,0x02]
41 # CHECK: ori $5, $5, 2 # encoding: [0x34,0xa5,0x00,0x02]
42 la $5, 0x40000002 # CHECK: lui $5, 16384 # encoding: [0x3c,0x05,0x40,0x00]
43 # CHECK: ori $5, $5, 2 # encoding: [0x34,0xa5,0x00,0x02]
44 la $5, 0x80000002 # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
45 # CHECK: ori $5, $5, 2 # encoding: [0x34,0xa5,0x00,0x02]
46 la $5, 0x00014000 # CHECK: lui $5, 1 # encoding: [0x3c,0x05,0x00,0x01]
47 # CHECK: ori $5, $5, 16384 # encoding: [0x34,0xa5,0x40,0x00]
48 la $5, 0x00024000 # CHECK: lui $5, 2 # encoding: [0x3c,0x05,0x00,0x02]
49 # CHECK: ori $5, $5, 16384 # encoding: [0x34,0xa5,0x40,0x00]
50 la $5, 0x40004000 # CHECK: lui $5, 16384 # encoding: [0x3c,0x05,0x40,0x00]
51 # CHECK: ori $5, $5, 16384 # encoding: [0x34,0xa5,0x40,0x00]
52 la $5, 0x80004000 # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
53 # CHECK: ori $5, $5, 16384 # encoding: [0x34,0xa5,0x40,0x00]
54 la $5, 0x00018000 # CHECK: lui $5, 1 # encoding: [0x3c,0x05,0x00,0x01]
55 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
56 la $5, 0x00028000 # CHECK: lui $5, 2 # encoding: [0x3c,0x05,0x00,0x02]
57 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
58 la $5, 0x40008000 # CHECK: lui $5, 16384 # encoding: [0x3c,0x05,0x40,0x00]
59 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
60 la $5, 0x80008000 # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
61 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
62 la $5, 0xffff4000 # CHECK: lui $5, 65535 # encoding: [0x3c,0x05,0xff,0xff]
63 # CHECK: ori $5, $5, 16384 # encoding: [0x34,0xa5,0x40,0x00]
64 la $5, 0xfffe8000 # CHECK: lui $5, 65534 # encoding: [0x3c,0x05,0xff,0xfe]
65 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
66 la $5, 0xc0008000 # CHECK: lui $5, 49152 # encoding: [0x3c,0x05,0xc0,0x00]
67 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
68 la $5, 0x80008000 # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
69 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
71 la $5, 0x00000001($6) # CHECK: addiu $5, $6, 1 # encoding: [0x24,0xc5,0x00,0x01]
72 la $5, 0x00000002($6) # CHECK: addiu $5, $6, 2 # encoding: [0x24,0xc5,0x00,0x02]
73 la $5, 0x00004000($6) # CHECK: addiu $5, $6, 16384 # encoding: [0x24,0xc5,0x40,0x00]
74 la $5, 0x00008000($6) # CHECK: ori $5, $zero, 32768 # encoding: [0x34,0x05,0x80,0x00]
75 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
76 la $5, 0xffffffff($6) # CHECK: addiu $5, $6, -1 # encoding: [0x24,0xc5,0xff,0xff]
77 la $5, 0xfffffffe($6) # CHECK: addiu $5, $6, -2 # encoding: [0x24,0xc5,0xff,0xfe]
78 la $5, 0xffffc000($6) # CHECK: addiu $5, $6, -16384 # encoding: [0x24,0xc5,0xc0,0x00]
79 la $5, 0xffff8000($6) # CHECK: addiu $5, $6, -32768 # encoding: [0x24,0xc5,0x80,0x00]
81 la $5, 0x00010000($6) # CHECK: lui $5, 1 # encoding: [0x3c,0x05,0x00,0x01]
82 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
83 la $5, 0x00020000($6) # CHECK: lui $5, 2 # encoding: [0x3c,0x05,0x00,0x02]
84 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
85 la $5, 0x40000000($6) # CHECK: lui $5, 16384 # encoding: [0x3c,0x05,0x40,0x00]
86 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
87 la $5, 0x80000000($6) # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
88 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
89 la $5, 0xffff0000($6) # CHECK: lui $5, 65535 # encoding: [0x3c,0x05,0xff,0xff]
90 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
91 la $5, 0xfffe0000($6) # CHECK: lui $5, 65534 # encoding: [0x3c,0x05,0xff,0xfe]
92 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
93 la $5, 0xc0000000($6) # CHECK: lui $5, 49152 # encoding: [0x3c,0x05,0xc0,0x00]
94 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
95 la $5, 0x80000000($6) # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
96 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
98 la $5, 0x00010001($6) # CHECK: lui $5, 1 # encoding: [0x3c,0x05,0x00,0x01]
99 # CHECK: ori $5, $5, 1 # encoding: [0x34,0xa5,0x00,0x01]
100 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
101 la $5, 0x00020001($6) # CHECK: lui $5, 2 # encoding: [0x3c,0x05,0x00,0x02]
102 # CHECK: ori $5, $5, 1 # encoding: [0x34,0xa5,0x00,0x01]
103 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
104 la $5, 0x40000001($6) # CHECK: lui $5, 16384 # encoding: [0x3c,0x05,0x40,0x00]
105 # CHECK: ori $5, $5, 1 # encoding: [0x34,0xa5,0x00,0x01]
106 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
107 la $5, 0x80000001($6) # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
108 # CHECK: ori $5, $5, 1 # encoding: [0x34,0xa5,0x00,0x01]
109 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
110 la $5, 0x00010002($6) # CHECK: lui $5, 1 # encoding: [0x3c,0x05,0x00,0x01]
111 # CHECK: ori $5, $5, 2 # encoding: [0x34,0xa5,0x00,0x02]
112 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
113 la $5, 0x00020002($6) # CHECK: lui $5, 2 # encoding: [0x3c,0x05,0x00,0x02]
114 # CHECK: ori $5, $5, 2 # encoding: [0x34,0xa5,0x00,0x02]
115 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
116 la $5, 0x40000002($6) # CHECK: lui $5, 16384 # encoding: [0x3c,0x05,0x40,0x00]
117 # CHECK: ori $5, $5, 2 # encoding: [0x34,0xa5,0x00,0x02]
118 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
119 la $5, 0x80000002($6) # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
120 # CHECK: ori $5, $5, 2 # encoding: [0x34,0xa5,0x00,0x02]
121 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
122 la $5, 0x00014000($6) # CHECK: lui $5, 1 # encoding: [0x3c,0x05,0x00,0x01]
123 # CHECK: ori $5, $5, 16384 # encoding: [0x34,0xa5,0x40,0x00]
124 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
125 la $5, 0x00024000($6) # CHECK: lui $5, 2 # encoding: [0x3c,0x05,0x00,0x02]
126 # CHECK: ori $5, $5, 16384 # encoding: [0x34,0xa5,0x40,0x00]
127 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
128 la $5, 0x40004000($6) # CHECK: lui $5, 16384 # encoding: [0x3c,0x05,0x40,0x00]
129 # CHECK: ori $5, $5, 16384 # encoding: [0x34,0xa5,0x40,0x00]
130 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
131 la $5, 0x80004000($6) # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
132 # CHECK: ori $5, $5, 16384 # encoding: [0x34,0xa5,0x40,0x00]
133 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
134 la $5, 0x00018000($6) # CHECK: lui $5, 1 # encoding: [0x3c,0x05,0x00,0x01]
135 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
136 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
137 la $5, 0x00028000($6) # CHECK: lui $5, 2 # encoding: [0x3c,0x05,0x00,0x02]
138 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
139 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
140 la $5, 0x40008000($6) # CHECK: lui $5, 16384 # encoding: [0x3c,0x05,0x40,0x00]
141 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
142 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
143 la $5, 0x80008000($6) # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
144 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
145 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
146 la $5, 0xffff4000($6) # CHECK: lui $5, 65535 # encoding: [0x3c,0x05,0xff,0xff]
147 # CHECK: ori $5, $5, 16384 # encoding: [0x34,0xa5,0x40,0x00]
148 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
149 la $5, 0xfffe8000($6) # CHECK: lui $5, 65534 # encoding: [0x3c,0x05,0xff,0xfe]
150 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
151 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
152 la $5, 0xc0008000($6) # CHECK: lui $5, 49152 # encoding: [0x3c,0x05,0xc0,0x00]
153 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
154 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
155 la $5, 0x80008000($6) # CHECK: lui $5, 32768 # encoding: [0x3c,0x05,0x80,0x00]
156 # CHECK: ori $5, $5, 32768 # encoding: [0x34,0xa5,0x80,0x00]
157 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
159 la $6, 0x00000001($6) # CHECK: addiu $6, $6, 1 # encoding: [0x24,0xc6,0x00,0x01]
160 la $6, 0x00000002($6) # CHECK: addiu $6, $6, 2 # encoding: [0x24,0xc6,0x00,0x02]
161 la $6, 0x00004000($6) # CHECK: addiu $6, $6, 16384 # encoding: [0x24,0xc6,0x40,0x00]
162 la $6, 0x00008000($6) # CHECK: ori $1, $zero, 32768 # encoding: [0x34,0x01,0x80,0x00]
163 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
164 la $6, 0xffffffff($6) # CHECK: addiu $6, $6, -1 # encoding: [0x24,0xc6,0xff,0xff]
165 la $6, 0xfffffffe($6) # CHECK: addiu $6, $6, -2 # encoding: [0x24,0xc6,0xff,0xfe]
166 la $6, 0xffffc000($6) # CHECK: addiu $6, $6, -16384 # encoding: [0x24,0xc6,0xc0,0x00]
167 la $6, 0xffff8000($6) # CHECK: addiu $6, $6, -32768 # encoding: [0x24,0xc6,0x80,0x00]
169 la $6, 0x00010000($6) # CHECK: lui $1, 1 # encoding: [0x3c,0x01,0x00,0x01]
170 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
171 la $6, 0x00020000($6) # CHECK: lui $1, 2 # encoding: [0x3c,0x01,0x00,0x02]
172 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
173 la $6, 0x40000000($6) # CHECK: lui $1, 16384 # encoding: [0x3c,0x01,0x40,0x00]
174 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
175 la $6, 0x80000000($6) # CHECK: lui $1, 32768 # encoding: [0x3c,0x01,0x80,0x00]
176 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
177 la $6, 0xffff0000($6) # CHECK: lui $1, 65535 # encoding: [0x3c,0x01,0xff,0xff]
178 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
179 la $6, 0xfffe0000($6) # CHECK: lui $1, 65534 # encoding: [0x3c,0x01,0xff,0xfe]
180 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
181 la $6, 0xc0000000($6) # CHECK: lui $1, 49152 # encoding: [0x3c,0x01,0xc0,0x00]
182 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
183 la $6, 0x80000000($6) # CHECK: lui $1, 32768 # encoding: [0x3c,0x01,0x80,0x00]
184 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
186 la $6, 0x00010001($6) # CHECK: lui $1, 1 # encoding: [0x3c,0x01,0x00,0x01]
187 # CHECK: ori $1, $1, 1 # encoding: [0x34,0x21,0x00,0x01]
188 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
189 la $6, 0x00020001($6) # CHECK: lui $1, 2 # encoding: [0x3c,0x01,0x00,0x02]
190 # CHECK: ori $1, $1, 1 # encoding: [0x34,0x21,0x00,0x01]
191 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
192 la $6, 0x40000001($6) # CHECK: lui $1, 16384 # encoding: [0x3c,0x01,0x40,0x00]
193 # CHECK: ori $1, $1, 1 # encoding: [0x34,0x21,0x00,0x01]
194 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
195 la $6, 0x80000001($6) # CHECK: lui $1, 32768 # encoding: [0x3c,0x01,0x80,0x00]
196 # CHECK: ori $1, $1, 1 # encoding: [0x34,0x21,0x00,0x01]
197 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
198 la $6, 0x00010002($6) # CHECK: lui $1, 1 # encoding: [0x3c,0x01,0x00,0x01]
199 # CHECK: ori $1, $1, 2 # encoding: [0x34,0x21,0x00,0x02]
200 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
201 la $6, 0x00020002($6) # CHECK: lui $1, 2 # encoding: [0x3c,0x01,0x00,0x02]
202 # CHECK: ori $1, $1, 2 # encoding: [0x34,0x21,0x00,0x02]
203 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
204 la $6, 0x40000002($6) # CHECK: lui $1, 16384 # encoding: [0x3c,0x01,0x40,0x00]
205 # CHECK: ori $1, $1, 2 # encoding: [0x34,0x21,0x00,0x02]
206 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
207 la $6, 0x80000002($6) # CHECK: lui $1, 32768 # encoding: [0x3c,0x01,0x80,0x00]
208 # CHECK: ori $1, $1, 2 # encoding: [0x34,0x21,0x00,0x02]
209 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
210 la $6, 0x00014000($6) # CHECK: lui $1, 1 # encoding: [0x3c,0x01,0x00,0x01]
211 # CHECK: ori $1, $1, 16384 # encoding: [0x34,0x21,0x40,0x00]
212 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
213 la $6, 0x00024000($6) # CHECK: lui $1, 2 # encoding: [0x3c,0x01,0x00,0x02]
214 # CHECK: ori $1, $1, 16384 # encoding: [0x34,0x21,0x40,0x00]
215 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
216 la $6, 0x40004000($6) # CHECK: lui $1, 16384 # encoding: [0x3c,0x01,0x40,0x00]
217 # CHECK: ori $1, $1, 16384 # encoding: [0x34,0x21,0x40,0x00]
218 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
219 la $6, 0x80004000($6) # CHECK: lui $1, 32768 # encoding: [0x3c,0x01,0x80,0x00]
220 # CHECK: ori $1, $1, 16384 # encoding: [0x34,0x21,0x40,0x00]
221 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
222 la $6, 0x00018000($6) # CHECK: lui $1, 1 # encoding: [0x3c,0x01,0x00,0x01]
223 # CHECK: ori $1, $1, 32768 # encoding: [0x34,0x21,0x80,0x00]
224 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
225 la $6, 0x00028000($6) # CHECK: lui $1, 2 # encoding: [0x3c,0x01,0x00,0x02]
226 # CHECK: ori $1, $1, 32768 # encoding: [0x34,0x21,0x80,0x00]
227 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
228 la $6, 0x40008000($6) # CHECK: lui $1, 16384 # encoding: [0x3c,0x01,0x40,0x00]
229 # CHECK: ori $1, $1, 32768 # encoding: [0x34,0x21,0x80,0x00]
230 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
231 la $6, 0x80008000($6) # CHECK: lui $1, 32768 # encoding: [0x3c,0x01,0x80,0x00]
232 # CHECK: ori $1, $1, 32768 # encoding: [0x34,0x21,0x80,0x00]
233 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
234 la $6, 0xffff4000($6) # CHECK: lui $1, 65535 # encoding: [0x3c,0x01,0xff,0xff]
235 # CHECK: ori $1, $1, 16384 # encoding: [0x34,0x21,0x40,0x00]
236 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
237 la $6, 0xfffe8000($6) # CHECK: lui $1, 65534 # encoding: [0x3c,0x01,0xff,0xfe]
238 # CHECK: ori $1, $1, 32768 # encoding: [0x34,0x21,0x80,0x00]
239 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
240 la $6, 0xc0008000($6) # CHECK: lui $1, 49152 # encoding: [0x3c,0x01,0xc0,0x00]
241 # CHECK: ori $1, $1, 32768 # encoding: [0x34,0x21,0x80,0x00]
242 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
243 la $6, 0x80008000($6) # CHECK: lui $1, 32768 # encoding: [0x3c,0x01,0x80,0x00]
244 # CHECK: ori $1, $1, 32768 # encoding: [0x34,0x21,0x80,0x00]
245 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
247 la $5, symbol # CHECK: lui $5, %hi(symbol) # encoding: [0x3c,0x05,A,A]
248 # CHECK: # fixup A - offset: 0, value: %hi(symbol), kind: fixup_Mips_HI16
249 # CHECK: addiu $5, $5, %lo(symbol) # encoding: [0x24,0xa5,A,A]
250 # CHECK: # fixup A - offset: 0, value: %lo(symbol), kind: fixup_Mips_LO16
251 la $5, symbol($6) # CHECK: lui $5, %hi(symbol) # encoding: [0x3c,0x05,A,A]
252 # CHECK: # fixup A - offset: 0, value: %hi(symbol), kind: fixup_Mips_HI16
253 # CHECK: addiu $5, $5, %lo(symbol) # encoding: [0x24,0xa5,A,A]
254 # CHECK: # fixup A - offset: 0, value: %lo(symbol), kind: fixup_Mips_LO16
255 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
256 la $6, symbol($6) # CHECK: lui $1, %hi(symbol) # encoding: [0x3c,0x01,A,A]
257 # CHECK: # fixup A - offset: 0, value: %hi(symbol), kind: fixup_Mips_HI16
258 # CHECK: addiu $1, $1, %lo(symbol) # encoding: [0x24,0x21,A,A]
259 # CHECK: # fixup A - offset: 0, value: %lo(symbol), kind: fixup_Mips_LO16
260 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
261 la $5, symbol+8 # CHECK: lui $5, %hi(symbol+8) # encoding: [0x3c,0x05,A,A]
262 # CHECK: # fixup A - offset: 0, value: %hi(symbol+8), kind: fixup_Mips_HI16
263 # CHECK: addiu $5, $5, %lo(symbol+8) # encoding: [0x24,0xa5,A,A]
264 # CHECK: # fixup A - offset: 0, value: %lo(symbol+8), kind: fixup_Mips_LO16
265 la $5, symbol+8($6) # CHECK: lui $5, %hi(symbol+8) # encoding: [0x3c,0x05,A,A]
266 # CHECK: # fixup A - offset: 0, value: %hi(symbol+8), kind: fixup_Mips_HI16
267 # CHECK: addiu $5, $5, %lo(symbol+8) # encoding: [0x24,0xa5,A,A]
268 # CHECK: # fixup A - offset: 0, value: %lo(symbol+8), kind: fixup_Mips_LO16
269 # CHECK: addu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x21]
270 la $6, symbol+8($6) # CHECK: lui $1, %hi(symbol+8) # encoding: [0x3c,0x01,A,A]
271 # CHECK: # fixup A - offset: 0, value: %hi(symbol+8), kind: fixup_Mips_HI16
272 # CHECK: addiu $1, $1, %lo(symbol+8) # encoding: [0x24,0x21,A,A]
273 # CHECK: # fixup A - offset: 0, value: %lo(symbol+8), kind: fixup_Mips_LO16
274 # CHECK: addu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x21]
275 la $5, 1f # O32: lui $5, %hi($tmp0) # encoding: [0x3c,0x05,A,A]
276 # O32: # fixup A - offset: 0, value: %hi($tmp0), kind: fixup_Mips_HI16
277 # O32: addiu $5, $5, %lo($tmp0) # encoding: [0x24,0xa5,A,A]
278 # O32: # fixup A - offset: 0, value: %lo($tmp0), kind: fixup_Mips_LO16
279 # N32: lui $5, %hi(.Ltmp0) # encoding: [0x3c,0x05,A,A]
280 # N32: # fixup A - offset: 0, value: %hi(.Ltmp0), kind: fixup_Mips_HI16
281 # N32: addiu $5, $5, %lo(.Ltmp0) # encoding: [0x24,0xa5,A,A]
282 # N32: # fixup A - offset: 0, value: %lo(.Ltmp0), kind: fixup_Mips_LO16