1 # RUN: llvm-mc %s -triple=xtensa -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
8 # Instruction format RRR
9 # CHECK-INST: abs a5, a6
10 # CHECK: encoding: [0x60,0x51,0x60]
13 # Instruction format RRR
14 # CHECK-INST: add a3, a9, a4
15 # CHECK: encoding: [0x40,0x39,0x80]
18 # CHECK-INST: add a15, a9, a1
19 # CHECK: encoding: [0x10,0xf9,0x80]
22 # Instruction format RRI8
23 # CHECK-INST: addi a8, a1, -128
24 # CHECK: encoding: [0x82,0xc1,0x80]
27 # CHECK-INST: addi a8, a1, -12
28 # CHECK: encoding: [0x82,0xc1,0xf4]
31 # Instruction format RRI8
32 # CHECK-INST: addmi a1, a2, 32512
33 # CHECK: encoding: [0x12,0xd2,0x7f]
36 # Instruction format RRR
37 # CHECK-INST: addx2 a2, a1, a5
38 # CHECK: encoding: [0x50,0x21,0x90]
41 # Instruction format RRR
42 # CHECK-INST: addx4 a3, a1, a6
43 # CHECK: encoding: [0x60,0x31,0xa0]
46 # Instruction format RRR
47 # CHECK-INST: addx8 a4, a1, a7
48 # CHECK: encoding: [0x70,0x41,0xb0]
51 # Instruction format RRR
52 # CHECK-INST: neg a1, a3
53 # CHECK: encoding: [0x30,0x10,0x60]
56 # Instruction format RRR
57 # CHECK-INST: or a4, a5, a6
58 # CHECK: encoding: [0x60,0x45,0x20]
61 # Instruction format RRR
62 # CHECK-INST: sub a8, a2, a1
63 # CHECK: encoding: [0x10,0x82,0xc0]
66 # Instruction format RRR
67 # CHECK-INST: subx2 a2, a1, a5
68 # CHECK: encoding: [0x50,0x21,0xd0]
71 # Instruction format RRR
72 # CHECK-INST: subx4 a3, a1, a6
73 # CHECK: encoding: [0x60,0x31,0xe0]
76 # Instruction format RRR
77 # CHECK-INST: subx8 a4, a1, a7
78 # CHECK: encoding: [0x70,0x41,0xf0]
81 # Instruction format RRR
82 # CHECK-INST: xor a6, a4, a5
83 # CHECK: encoding: [0x50,0x64,0x30]