1 # RUN: llvm-mc %s -triple=xtensa -show-encoding --mattr=+density \
2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
7 # Instruction format RRRN
8 # CHECK-INST: add.n a2, a3, a4
9 # CHECK: encoding: [0x4a,0x23]
12 # Instruction format RRRN
13 # CHECK-INST: addi.n a2, a3, 3
14 # CHECK: encoding: [0x3b,0x23]
17 # Instruction format RRRN
18 # CHECK-INST: addi.n a2, a3, -1
19 # CHECK: encoding: [0x0b,0x23]
22 # Instruction format RI6
23 # CHECK-INST: beqz.n a3, LBL1
24 # CHECK: encoding: [0x8c'A',0x03'A']
27 # Instruction format RI6
28 # CHECK-INST: bnez.n a3, LBL1
29 # CHECK: encoding: [0xcc'A',0x03'A']
32 # Instruction format RRRN
34 # CHECK: encoding: [0x6d,0xf0]
37 # Instruction format RRRN
38 # CHECK-INST: l32i.n a2, a3, 12
39 # CHECK: encoding: [0x28,0x33]
42 # Instruction format RRRN
43 # CHECK-INST: mov.n a2, a3
44 # CHECK: encoding: [0x2d,0x03]
47 # Instruction format RI7
48 # CHECK-INST: movi.n a2, -32
49 # CHECK: encoding: [0x6c,0x02]
52 # Instruction format RRRN
54 # CHECK: encoding: [0x3d,0xf0]
57 # Instruction format RRRN
59 # CHECK: encoding: [0x0d,0xf0]
62 # Instruction format RRRN
63 # CHECK-INST: s32i.n a2, a3, 12
64 # CHECK: encoding: [0x29,0x33]