1 # RUN: llvm-mc -triple=ve --show-encoding < %s \
2 # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 # RUN: llvm-mc -triple=ve -filetype=obj < %s | llvm-objdump -d - \
4 # RUN: | FileCheck %s --check-prefixes=CHECK-INST
6 # CHECK-INST: smir %s11, %usrcc
7 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x00,0x0b,0x22]
10 # CHECK-INST: smir %s11, %usrcc
11 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x00,0x0b,0x22]
14 # CHECK-INST: smir %s11, %psw
15 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x01,0x0b,0x22]
18 # CHECK-INST: smir %s11, %psw
19 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x01,0x0b,0x22]
22 # CHECK-INST: smir %s11, %sar
23 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x02,0x0b,0x22]
26 # CHECK-INST: smir %s11, %sar
27 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x02,0x0b,0x22]
30 # CHECK-INST: smir %s11, %pmmr
31 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x07,0x0b,0x22]
34 # CHECK-INST: smir %s11, %pmmr
35 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x07,0x0b,0x22]
38 # CHECK-INST: smir %s11, %pmcr0
39 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x08,0x0b,0x22]
42 # CHECK-INST: smir %s11, %pmcr0
43 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x08,0x0b,0x22]
46 # CHECK-INST: smir %s11, %pmcr1
47 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x09,0x0b,0x22]
50 # CHECK-INST: smir %s11, %pmcr1
51 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x09,0x0b,0x22]
54 # CHECK-INST: smir %s11, %pmcr2
55 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0a,0x0b,0x22]
58 # CHECK-INST: smir %s11, %pmcr2
59 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0a,0x0b,0x22]
62 # CHECK-INST: smir %s11, %pmcr3
63 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0b,0x0b,0x22]
66 # CHECK-INST: smir %s11, %pmcr3
67 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0b,0x0b,0x22]
70 # CHECK-INST: smir %s11, %pmc0
71 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x10,0x0b,0x22]
74 # CHECK-INST: smir %s11, %pmc0
75 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x10,0x0b,0x22]
78 # CHECK-INST: smir %s11, %pmc1
79 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x11,0x0b,0x22]
82 # CHECK-INST: smir %s11, %pmc1
83 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x11,0x0b,0x22]
86 # CHECK-INST: smir %s11, %pmc2
87 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x12,0x0b,0x22]
90 # CHECK-INST: smir %s11, %pmc2
91 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x12,0x0b,0x22]
94 # CHECK-INST: smir %s11, %pmc3
95 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x13,0x0b,0x22]
98 # CHECK-INST: smir %s11, %pmc3
99 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x13,0x0b,0x22]
102 # CHECK-INST: smir %s11, %pmc4
103 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x14,0x0b,0x22]
106 # CHECK-INST: smir %s11, %pmc4
107 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x14,0x0b,0x22]
110 # CHECK-INST: smir %s11, %pmc5
111 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x15,0x0b,0x22]
114 # CHECK-INST: smir %s11, %pmc5
115 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x15,0x0b,0x22]
118 # CHECK-INST: smir %s11, %pmc6
119 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x16,0x0b,0x22]
122 # CHECK-INST: smir %s11, %pmc6
123 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x16,0x0b,0x22]
126 # CHECK-INST: smir %s11, %pmc7
127 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x17,0x0b,0x22]
130 # CHECK-INST: smir %s11, %pmc7
131 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x17,0x0b,0x22]
134 # CHECK-INST: smir %s11, %pmc8
135 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x18,0x0b,0x22]
138 # CHECK-INST: smir %s11, %pmc8
139 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x18,0x0b,0x22]
142 # CHECK-INST: smir %s11, %pmc9
143 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x19,0x0b,0x22]
146 # CHECK-INST: smir %s11, %pmc9
147 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x19,0x0b,0x22]
150 # CHECK-INST: smir %s11, %pmc10
151 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1a,0x0b,0x22]
154 # CHECK-INST: smir %s11, %pmc10
155 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1a,0x0b,0x22]
158 # CHECK-INST: smir %s11, %pmc11
159 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1b,0x0b,0x22]
162 # CHECK-INST: smir %s11, %pmc11
163 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1b,0x0b,0x22]
166 # CHECK-INST: smir %s11, %pmc12
167 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1c,0x0b,0x22]
170 # CHECK-INST: smir %s11, %pmc12
171 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1c,0x0b,0x22]
174 # CHECK-INST: smir %s11, %pmc13
175 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1d,0x0b,0x22]
178 # CHECK-INST: smir %s11, %pmc13
179 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1d,0x0b,0x22]
182 # CHECK-INST: smir %s11, %pmc14
183 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1e,0x0b,0x22]
186 # CHECK-INST: smir %s11, %pmc14
187 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1e,0x0b,0x22]