[mips] [IAS] Add support for BNE and BEQ with an immediate operand.
[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   add $4, $5, $6
24
25   .set noreorder
26   .set nomacro
27   li  $8, -16
28 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
29   li  $8, 16
30 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
31   li  $8, 161616
32 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
33
34   la  $8, 16
35 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
36   la  $8, 161616
37 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
38   la  $8, 16($9)
39 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
40   la  $8, 161616($9)
41 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
42   la  $8, symbol
43 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
44
45   jal $25
46 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
47   jal $4, $25
48 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
49
50   bne $2, 0, 1332
51 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
52   bne $2, 1, 1332
53 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
54   beq $2, 0, 1332
55 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
56   beq $2, 1, 1332
57 # CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
58
59   add $4, $5, $6
60 # CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions