3f82f81613158162845326d2677901bad75db0dd
[oota-llvm.git] / test / MC / Mips / set-nomacro.s
1 # RUN: llvm-mc %s -arch=mips -mcpu=mips32 2>&1 | FileCheck %s
2
3 # CHECK-NOT: warning: macro instruction expanded into multiple instructions
4   .set macro
5   li  $8, -16
6   li  $8, 16
7   li  $8, 161616
8
9   la  $8, 16
10   la  $8, 161616
11   la  $8, 16($9)
12   la  $8, 161616($9)
13   la  $8, symbol
14
15   jal $25
16   jal $4, $25
17
18   bne $2, 0, 1332
19   bne $2, 1, 1332
20   beq $2, 0, 1332
21   beq $2, 1, 1332
22
23   blt $7, $8, local_label
24   blt $7, $0, local_label
25   blt $0, $8, local_label
26   blt $0, $0, local_label
27
28   bltu $7, $8, local_label
29   bltu $7, $0, local_label
30   bltu $0, $8, local_label
31   bltu $0, $0, local_label
32
33   ble $7, $8, local_label
34   ble $7, $0, local_label
35   ble $0, $8, local_label
36   ble $0, $0, local_label
37
38   bleu $7, $8, local_label
39   bleu $7, $0, local_label
40   bleu $0, $8, local_label
41   bleu $0, $0, local_label
42
43   bge $7, $8, local_label
44   bge $7, $0, local_label
45   bge $0, $8, local_label
46   bge $0, $0, local_label
47
48   bgeu $7, $8, local_label
49   bgeu $7, $0, local_label
50   bgeu $0, $8, local_label
51   bgeu $0, $0, local_label
52
53   bgt $7, $8, local_label
54   bgt $7, $0, local_label
55   bgt $0, $8, local_label
56   bgt $0, $0, local_label
57
58   bgtu $7, $8, local_label
59   bgtu $7, $0, local_label
60   bgtu $0, $8, local_label
61   bgtu $0, $0, local_label
62
63   ulhu $5, 0
64
65   ulw $8, 2
66   ulw $8, 0x8000
67   ulw $8, 2($9)
68   ulw $8, 0x8000($9)
69
70   add $4, $5, $6
71
72   .set noreorder
73   .set nomacro
74   li  $8, -16
75 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
76   li  $8, 16
77 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
78   li  $8, 161616
79 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
80
81   la  $8, 16
82 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
83   la  $8, 161616
84 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
85   la  $8, 16($9)
86 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
87   la  $8, 161616($9)
88 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
89   la  $8, symbol
90 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
91
92   jal $25
93 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
94   jal $4, $25
95 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
96
97   bne $2, 0, 1332
98 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
99   bne $2, 1, 1332
100 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
101   beq $2, 0, 1332
102 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
103   beq $2, 1, 1332
104 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
105
106   blt $7, $8, local_label
107 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
108   blt $7, $0, local_label
109 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
110   blt $0, $8, local_label
111 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
112   blt $0, $0, local_label
113 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
114
115   bltu $7, $8, local_label
116 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
117   bltu $7, $0, local_label
118 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
119   bltu $0, $8, local_label
120 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
121   bltu $0, $0, local_label
122 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
123
124   ble $7, $8, local_label
125 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
126   ble $7, $0, local_label
127 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
128   ble $0, $8, local_label
129 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
130   ble $0, $0, local_label
131 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
132
133   bleu $7, $8, local_label
134 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
135   bleu $7, $0, local_label
136 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
137   bleu $0, $8, local_label
138 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
139   bleu $0, $0, local_label
140 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
141
142   bge $7, $8, local_label
143 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
144   bge $7, $0, local_label
145 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
146   bge $0, $8, local_label
147 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
148   bge $0, $0, local_label
149 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
150
151   bgeu $7, $8, local_label
152 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
153   bgeu $7, $0, local_label
154 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
155   bgeu $0, $8, local_label
156 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
157   bgeu $0, $0, local_label
158 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
159
160   bgt $7, $8, local_label
161 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
162   bgt $7, $0, local_label
163 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
164   bgt $0, $8, local_label
165 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
166   bgt $0, $0, local_label
167 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
168
169   bgtu $7, $8, local_label
170 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
171   bgtu $7, $0, local_label
172 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
173   bgtu $0, $8, local_label
174 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
175   bgtu $0, $0, local_label
176 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
177
178   ulhu $5, 0
179 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
180
181   ulw $8, 2
182 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
183   ulw $8, 0x8000
184 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
185   ulw $8, 2($9)
186 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
187   ulw $8, 0x8000($9)
188 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
189
190   add $4, $5, $6
191 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions