[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / MC / Xtensa / Core / shift.s
blob3f9c980ff5554120a0bbf4635a48348571bdd27b
1 # RUN: llvm-mc %s -triple=xtensa -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
5 .align 4
6 LBL0:
8 # Instruction format RRR
9 # CHECK-INST: extui a1, a2, 7, 8
10 # CHECK: encoding: [0x20,0x17,0x74]
11 extui a1, a2, 7, 8
13 # Instruction format RRR
14 # CHECK-INST: sll a10, a11
15 # CHECK: encoding: [0x00,0xab,0xa1]
16 sll a10, a11
18 # Instruction format RRR
19 # CHECK-INST: slli a5, a1, 15
20 # CHECK: encoding: [0x10,0x51,0x11]
21 slli a5, a1, 15
23 # Instruction format RRR
24 # CHECK-INST: sra a12, a3
25 # CHECK: encoding: [0x30,0xc0,0xb1]
26 sra a12, a3
28 # Instruction format RRR
29 # CHECK-INST: srai a8, a5, 0
30 # CHECK: encoding: [0x50,0x80,0x21]
31 srai a8, a5, 0
33 # Instruction format RRR
34 # CHECK-INST: src a3, a4, a5
35 # CHECK: encoding: [0x50,0x34,0x81]
36 src a3, a4, a5
38 # Instruction format RRR
39 # CHECK-INST: srl a6, a7
40 # CHECK: encoding: [0x70,0x60,0x91]
41 srl a6, a7
43 # Instruction format RRR
44 # CHECK-INST: srli a3, a4, 8
45 # CHECK: encoding: [0x40,0x38,0x41]
46 srli a3, a4, 8
48 # Instruction format RRR
49 # CHECK-INST: ssa8l a14
50 # CHECK: encoding: [0x00,0x2e,0x40]
51 ssa8l a14
53 # Instruction format RRR
54 # CHECK-INST: ssai 31
55 # CHECK: encoding: [0x10,0x4f,0x40]
56 ssai 31
58 # Instruction format RRR
59 # CHECK-INST: ssl a0
60 # CHECK: encoding: [0x00,0x10,0x40]
61 ssl a0
63 # Instruction format RRR
64 # CHECK-INST: ssr a2
65 # CHECK: encoding: [0x00,0x02,0x40]
66 ssr a2