1 # RUN: llvm-mc %s -triple=xtensa -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
8 # Instruction format RRI8
9 # CHECK-INST: ball a1, a3, LBL0
10 # CHECK: encoding: [0x37,0x41,A]
13 # Instruction format RRI8
14 # CHECK-INST: bany a8, a13, LBL0
15 # CHECK: encoding: [0xd7,0x88,A]
18 # Instruction format RRI8
19 # CHECK-INST: bbc a8, a7, LBL0
20 # CHECK: encoding: [0x77,0x58,A]
23 # Instruction format RRI8
24 # CHECK-INST: bbci a3, 16, LBL0
25 # CHECK: encoding: [0x07,0x73,A]
28 # CHECK-INST: bbci a3, 16, LBL0
29 # CHECK: encoding: [0x07,0x73,A]
32 # Instruction format RRI8
33 # CHECK-INST: bbs a12, a5, LBL0
34 # CHECK: encoding: [0x57,0xdc,A]
37 # Instruction format RRI8
38 # CHECK-INST: bbsi a3, 16, LBL0
39 # CHECK: encoding: [0x07,0xf3,A]
42 # Instruction format RRI8
43 # CHECK-INST: bnall a7, a3, LBL0
44 # CHECK: encoding: [0x37,0xc7,A]
47 # Instruction format RRI8
48 # CHECK-INST: bnone a2, a4, LBL0
49 # CHECK: encoding: [0x47,0x02,A]
52 # Instruction format RRI8
53 # CHECK-INST: beq a1, a2, LBL0
54 # CHECK: encoding: [0x27,0x11,A]
57 # CHECK-INST: beq a11, a5, LBL0
58 # CHECK: encoding: [0x57,0x1b,A]
61 # Instruction format BRI8
62 # CHECK-INST: beqi a1, 256, LBL0
63 # CHECK: encoding: [0x26,0xf1,A]
66 # CHECK-INST: beqi a11, -1, LBL0
67 # CHECK: encoding: [0x26,0x0b,A]
70 # Instruction format BRI12
71 # CHECK-INST: beqz a8, LBL0
72 # CHECK: encoding: [0x16,0bAAAA1000,A]
75 # Instruction format RRI8
76 # CHECK-INST: bge a14, a2, LBL0
77 # CHECK: encoding: [0x27,0xae,A]
80 # Instruction format BRI8
81 # CHECK-INST: bgei a11, -1, LBL0
82 # CHECK: encoding: [0xe6,0x0b,A]
85 # CHECK-INST: bgei a11, 128, LBL0
86 # CHECK: encoding: [0xe6,0xeb,A]
89 # Instruction format RRI8
90 # CHECK-INST: bgeu a14, a2, LBL0
91 # CHECK: encoding: [0x27,0xbe,A]
94 # CHECK-INST: bgeu a13, a1, LBL0
95 # CHECK: encoding: [0x17,0xbd,A]
98 # Instruction format BRI8
99 # CHECK-INST: bgeui a9, 32768, LBL0
100 # CHECK: encoding: [0xf6,0x09,A]
101 bgeui a9
, 32768, LBL0
103 # CHECK-INST: bgeui a7, 65536, LBL0
104 # CHECK: encoding: [0xf6,0x17,A]
105 bgeui a7
, 65536, LBL0
107 # CHECK-INST: bgeui a7, 64, LBL0
108 # CHECK: encoding: [0xf6,0xd7,A]
111 # Instruction format BRI12
112 # CHECK-INST: bgez a8, LBL0
113 # CHECK: encoding: [0xd6,0bAAAA1000,A]
116 # Instruction format RRI8
117 # CHECK-INST: blt a14, a2, LBL0
118 # CHECK: encoding: [0x27,0x2e,A]
121 # Instruction format BRI8
122 # CHECK-INST: blti a12, -1, LBL0
123 # CHECK: encoding: [0xa6,0x0c,A]
126 # CHECK-INST: blti a0, 32, LBL0
127 # CHECK: encoding: [0xa6,0xc0,A]
130 # Instruction format BRI8
131 # CHECK-INST: bltui a7, 16, LBL0
132 # CHECK: encoding: [0xb6,0xb7,A]
135 # Instruction format BRI12
136 # CHECK-INST: bltz a6, LBL0
137 # CHECK: encoding: [0x96,0bAAAA0110,A]
140 # Instruction format RRI8
141 # CHECK-INST: bne a3, a4, LBL0
142 # CHECK: encoding: [0x47,0x93,A]
145 # Instruction format BRI8
146 # CHECK-INST: bnei a5, 12, LBL0
147 # CHECK: encoding: [0x66,0xa5,A]
150 # Instruction format BRI12
151 # CHECK-INST: bnez a5, LBL0
152 # CHECK: encoding: [0x56,0bAAAA0101,A]