1 # Check the hardware registers
3 # FIXME: Use the code generator in order to print the .set directives
4 # instead of the instruction printer.
6 # RUN: llvm-mc %s -triple=mips-unknown-linux -show-encoding -mcpu=mips32r2 | \
10 # CHECK-NEXT: .set mips32r2
11 # CHECK-NEXT: rdhwr $4, $hwr_cpunum
12 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x00,0x3b]
15 # CHECK-NEXT: .set mips32r2
16 # CHECK-NEXT: rdhwr $4, $hwr_cpunum
17 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x00,0x3b]
21 # CHECK-NEXT: .set mips32r2
22 # CHECK-NEXT: rdhwr $5, $hwr_synci_step
23 # CHECK-NEXT: .set pop # encoding: [0x7c,0x05,0x08,0x3b]
24 rdhwr $a1
,$hwr_synci_step
26 # CHECK-NEXT: .set mips32r2
27 # CHECK-NEXT: rdhwr $5, $hwr_synci_step
28 # CHECK-NEXT: .set pop # encoding: [0x7c,0x05,0x08,0x3b]
32 # CHECK-NEXT: .set mips32r2
33 # CHECK-NEXT: rdhwr $6, $hwr_cc
34 # CHECK-NEXT: .set pop # encoding: [0x7c,0x06,0x10,0x3b]
37 # CHECK-NEXT: .set mips32r2
38 # CHECK-NEXT: rdhwr $6, $hwr_cc
39 # CHECK-NEXT: .set pop # encoding: [0x7c,0x06,0x10,0x3b]
43 # CHECK-NEXT: .set mips32r2
44 # CHECK-NEXT: rdhwr $7, $hwr_ccres
45 # CHECK-NEXT: .set pop # encoding: [0x7c,0x07,0x18,0x3b]
48 # CHECK-NEXT: .set mips32r2
49 # CHECK-NEXT: rdhwr $7, $hwr_ccres
50 # CHECK-NEXT: .set pop # encoding: [0x7c,0x07,0x18,0x3b]
54 # CHECK-NEXT: .set mips32r2
55 # CHECK-NEXT: rdhwr $4, $4
56 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x20,0x3b]
59 # CHECK-NEXT: .set mips32r2
60 # CHECK-NEXT: rdhwr $4, $5
61 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x28,0x3b]
64 # CHECK-NEXT: .set mips32r2
65 # CHECK-NEXT: rdhwr $4, $6
66 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x30,0x3b]
69 # CHECK-NEXT: .set mips32r2
70 # CHECK-NEXT: rdhwr $4, $7
71 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x38,0x3b]
74 # CHECK-NEXT: .set mips32r2
75 # CHECK-NEXT: rdhwr $4, $8
76 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x40,0x3b]
79 # CHECK-NEXT: .set mips32r2
80 # CHECK-NEXT: rdhwr $4, $9
81 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x48,0x3b]
84 # CHECK-NEXT: .set mips32r2
85 # CHECK-NEXT: rdhwr $4, $10
86 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x50,0x3b]
89 # CHECK-NEXT: .set mips32r2
90 # CHECK-NEXT: rdhwr $4, $11
91 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x58,0x3b]
94 # CHECK-NEXT: .set mips32r2
95 # CHECK-NEXT: rdhwr $4, $12
96 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x60,0x3b]
99 # CHECK-NEXT: .set mips32r2
100 # CHECK-NEXT: rdhwr $4, $13
101 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x68,0x3b]
104 # CHECK-NEXT: .set mips32r2
105 # CHECK-NEXT: rdhwr $4, $14
106 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x70,0x3b]
109 # CHECK-NEXT: .set mips32r2
110 # CHECK-NEXT: rdhwr $4, $15
111 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x78,0x3b]
114 # CHECK-NEXT: .set mips32r2
115 # CHECK-NEXT: rdhwr $4, $16
116 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x80,0x3b]
119 # CHECK-NEXT: .set mips32r2
120 # CHECK-NEXT: rdhwr $4, $17
121 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x88,0x3b]
124 # CHECK-NEXT: .set mips32r2
125 # CHECK-NEXT: rdhwr $4, $18
126 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x90,0x3b]
129 # CHECK-NEXT: .set mips32r2
130 # CHECK-NEXT: rdhwr $4, $19
131 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0x98,0x3b]
134 # CHECK-NEXT: .set mips32r2
135 # CHECK-NEXT: rdhwr $4, $20
136 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xa0,0x3b]
139 # CHECK-NEXT: .set mips32r2
140 # CHECK-NEXT: rdhwr $4, $21
141 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xa8,0x3b]
144 # CHECK-NEXT: .set mips32r2
145 # CHECK-NEXT: rdhwr $4, $22
146 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xb0,0x3b]
149 # CHECK-NEXT: .set mips32r2
150 # CHECK-NEXT: rdhwr $4, $23
151 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xb8,0x3b]
154 # CHECK-NEXT: .set mips32r2
155 # CHECK-NEXT: rdhwr $4, $24
156 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xc0,0x3b]
159 # CHECK-NEXT: .set mips32r2
160 # CHECK-NEXT: rdhwr $4, $25
161 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xc8,0x3b]
164 # CHECK-NEXT: .set mips32r2
165 # CHECK-NEXT: rdhwr $4, $26
166 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xd0,0x3b]
169 # CHECK-NEXT: .set mips32r2
170 # CHECK-NEXT: rdhwr $4, $27
171 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xd8,0x3b]
174 # CHECK-NEXT: .set mips32r2
175 # CHECK-NEXT: rdhwr $4, $28
176 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xe0,0x3b]
180 # CHECK-NEXT: .set mips32r2
181 # CHECK-NEXT: rdhwr $4, $29
182 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xe8,0x3b]
185 # CHECK-NEXT: .set mips32r2
186 # CHECK-NEXT: rdhwr $4, $29
187 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xe8,0x3b]
191 # CHECK-NEXT: .set mips32r2
192 # CHECK-NEXT: rdhwr $4, $30
193 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xf0,0x3b]
196 # CHECK-NEXT: .set mips32r2
197 # CHECK-NEXT: rdhwr $4, $31
198 # CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xf8,0x3b]