1 # RUN: llvm-mc %s -triple=xtensa -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
8 # Instruction format RRR
10 # CHECK: encoding: [0x30,0x20,0x00]
13 # Instruction format RRR
15 # CHECK: encoding: [0x20,0x20,0x00]
18 # Instruction format RRR
20 # CHECK: encoding: [0x00,0x20,0x00]
23 # Instruction format RRR
25 # CHECK: encoding: [0xf0,0x20,0x00]
28 # Instruction format RSR
29 # CHECK-INST: rsr a8, sar
30 # CHECK: encoding: [0x80,0x03,0x03]
33 # CHECK-INST: rsr a8, sar
34 # CHECK: encoding: [0x80,0x03,0x03]
37 # CHECK-INST: rsr a8, sar
38 # CHECK: encoding: [0x80,0x03,0x03]
41 # Instruction format RRR
43 # CHECK: encoding: [0x10,0x20,0x00]
46 # Instruction format RSR
47 # CHECK-INST: wsr a8, sar
48 # CHECK: encoding: [0x80,0x03,0x13]
51 # CHECK-INST: wsr a8, sar
52 # CHECK: encoding: [0x80,0x03,0x13]
55 # CHECK-INST: wsr a8, sar
56 # CHECK: encoding: [0x80,0x03,0x13]
59 # Instruction format RRR
60 # CHECK-INST: xsr a8, sar
61 # CHECK: encoding: [0x80,0x03,0x61]
64 # CHECK-INST: xsr a8, sar
65 # CHECK: encoding: [0x80,0x03,0x61]
68 # CHECK-INST: xsr a8, sar
69 # CHECK: encoding: [0x80,0x03,0x61]