[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / VE / SMIR.s
blob75a578785c6f02669f9f4a8a037d98c20d37b87e
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]
8 smir %s11, 0
10 # CHECK-INST: smir %s11, %usrcc
11 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x00,0x0b,0x22]
12 smir %s11, %usrcc
14 # CHECK-INST: smir %s11, %psw
15 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x01,0x0b,0x22]
16 smir %s11, 1
18 # CHECK-INST: smir %s11, %psw
19 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x01,0x0b,0x22]
20 smir %s11, %psw
22 # CHECK-INST: smir %s11, %sar
23 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x02,0x0b,0x22]
24 smir %s11, 2
26 # CHECK-INST: smir %s11, %sar
27 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x02,0x0b,0x22]
28 smir %s11, %sar
30 # CHECK-INST: smir %s11, %pmmr
31 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x07,0x0b,0x22]
32 smir %s11, 7
34 # CHECK-INST: smir %s11, %pmmr
35 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x07,0x0b,0x22]
36 smir %s11, %pmmr
38 # CHECK-INST: smir %s11, %pmcr0
39 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x08,0x0b,0x22]
40 smir %s11, 8
42 # CHECK-INST: smir %s11, %pmcr0
43 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x08,0x0b,0x22]
44 smir %s11, %pmcr0
46 # CHECK-INST: smir %s11, %pmcr1
47 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x09,0x0b,0x22]
48 smir %s11, 9
50 # CHECK-INST: smir %s11, %pmcr1
51 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x09,0x0b,0x22]
52 smir %s11, %pmcr1
54 # CHECK-INST: smir %s11, %pmcr2
55 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0a,0x0b,0x22]
56 smir %s11, 10
58 # CHECK-INST: smir %s11, %pmcr2
59 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0a,0x0b,0x22]
60 smir %s11, %pmcr2
62 # CHECK-INST: smir %s11, %pmcr3
63 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0b,0x0b,0x22]
64 smir %s11, 11
66 # CHECK-INST: smir %s11, %pmcr3
67 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x0b,0x0b,0x22]
68 smir %s11, %pmcr3
70 # CHECK-INST: smir %s11, %pmc0
71 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x10,0x0b,0x22]
72 smir %s11, 16
74 # CHECK-INST: smir %s11, %pmc0
75 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x10,0x0b,0x22]
76 smir %s11, %pmc0
78 # CHECK-INST: smir %s11, %pmc1
79 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x11,0x0b,0x22]
80 smir %s11, 17
82 # CHECK-INST: smir %s11, %pmc1
83 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x11,0x0b,0x22]
84 smir %s11, %pmc1
86 # CHECK-INST: smir %s11, %pmc2
87 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x12,0x0b,0x22]
88 smir %s11, 18
90 # CHECK-INST: smir %s11, %pmc2
91 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x12,0x0b,0x22]
92 smir %s11, %pmc2
94 # CHECK-INST: smir %s11, %pmc3
95 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x13,0x0b,0x22]
96 smir %s11, 19
98 # CHECK-INST: smir %s11, %pmc3
99 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x13,0x0b,0x22]
100 smir %s11, %pmc3
102 # CHECK-INST: smir %s11, %pmc4
103 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x14,0x0b,0x22]
104 smir %s11, 20
106 # CHECK-INST: smir %s11, %pmc4
107 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x14,0x0b,0x22]
108 smir %s11, %pmc4
110 # CHECK-INST: smir %s11, %pmc5
111 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x15,0x0b,0x22]
112 smir %s11, 21
114 # CHECK-INST: smir %s11, %pmc5
115 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x15,0x0b,0x22]
116 smir %s11, %pmc5
118 # CHECK-INST: smir %s11, %pmc6
119 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x16,0x0b,0x22]
120 smir %s11, 22
122 # CHECK-INST: smir %s11, %pmc6
123 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x16,0x0b,0x22]
124 smir %s11, %pmc6
126 # CHECK-INST: smir %s11, %pmc7
127 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x17,0x0b,0x22]
128 smir %s11, 23
130 # CHECK-INST: smir %s11, %pmc7
131 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x17,0x0b,0x22]
132 smir %s11, %pmc7
134 # CHECK-INST: smir %s11, %pmc8
135 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x18,0x0b,0x22]
136 smir %s11, 24
138 # CHECK-INST: smir %s11, %pmc8
139 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x18,0x0b,0x22]
140 smir %s11, %pmc8
142 # CHECK-INST: smir %s11, %pmc9
143 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x19,0x0b,0x22]
144 smir %s11, 25
146 # CHECK-INST: smir %s11, %pmc9
147 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x19,0x0b,0x22]
148 smir %s11, %pmc9
150 # CHECK-INST: smir %s11, %pmc10
151 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1a,0x0b,0x22]
152 smir %s11, 26
154 # CHECK-INST: smir %s11, %pmc10
155 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1a,0x0b,0x22]
156 smir %s11, %pmc10
158 # CHECK-INST: smir %s11, %pmc11
159 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1b,0x0b,0x22]
160 smir %s11, 27
162 # CHECK-INST: smir %s11, %pmc11
163 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1b,0x0b,0x22]
164 smir %s11, %pmc11
166 # CHECK-INST: smir %s11, %pmc12
167 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1c,0x0b,0x22]
168 smir %s11, 28
170 # CHECK-INST: smir %s11, %pmc12
171 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1c,0x0b,0x22]
172 smir %s11, %pmc12
174 # CHECK-INST: smir %s11, %pmc13
175 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1d,0x0b,0x22]
176 smir %s11, 29
178 # CHECK-INST: smir %s11, %pmc13
179 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1d,0x0b,0x22]
180 smir %s11, %pmc13
182 # CHECK-INST: smir %s11, %pmc14
183 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1e,0x0b,0x22]
184 smir %s11, 30
186 # CHECK-INST: smir %s11, %pmc14
187 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x1e,0x0b,0x22]
188 smir %s11, %pmc14