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: extui a1, a2, 7, 8
10 # CHECK: encoding: [0x20,0x17,0x74]
13 # Instruction format RRR
14 # CHECK-INST: sll a10, a11
15 # CHECK: encoding: [0x00,0xab,0xa1]
18 # Instruction format RRR
19 # CHECK-INST: slli a5, a1, 15
20 # CHECK: encoding: [0x10,0x51,0x11]
23 # Instruction format RRR
24 # CHECK-INST: sra a12, a3
25 # CHECK: encoding: [0x30,0xc0,0xb1]
28 # Instruction format RRR
29 # CHECK-INST: srai a8, a5, 0
30 # CHECK: encoding: [0x50,0x80,0x21]
33 # Instruction format RRR
34 # CHECK-INST: src a3, a4, a5
35 # CHECK: encoding: [0x50,0x34,0x81]
38 # Instruction format RRR
39 # CHECK-INST: srl a6, a7
40 # CHECK: encoding: [0x70,0x60,0x91]
43 # Instruction format RRR
44 # CHECK-INST: srli a3, a4, 8
45 # CHECK: encoding: [0x40,0x38,0x41]
48 # Instruction format RRR
49 # CHECK-INST: ssa8l a14
50 # CHECK: encoding: [0x00,0x2e,0x40]
53 # Instruction format RRR
55 # CHECK: encoding: [0x10,0x4f,0x40]
58 # Instruction format RRR
60 # CHECK: encoding: [0x00,0x10,0x40]
63 # Instruction format RRR
65 # CHECK: encoding: [0x00,0x02,0x40]