[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / MC / Xtensa / Core / arith.s
blob2f3146b9533c949bbc282e1a6086de2c357eeb18
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: abs a5, a6
10 # CHECK: encoding: [0x60,0x51,0x60]
11 abs a5, a6
13 # Instruction format RRR
14 # CHECK-INST: add a3, a9, a4
15 # CHECK: encoding: [0x40,0x39,0x80]
16 add a3, a9, a4
18 # CHECK-INST: add a15, a9, a1
19 # CHECK: encoding: [0x10,0xf9,0x80]
20 add a15, a9, sp
22 # Instruction format RRI8
23 # CHECK-INST: addi a8, a1, -128
24 # CHECK: encoding: [0x82,0xc1,0x80]
25 addi a8, sp, -128
27 # CHECK-INST: addi a8, a1, -12
28 # CHECK: encoding: [0x82,0xc1,0xf4]
29 addi a8, a1, -12
31 # Instruction format RRI8
32 # CHECK-INST: addmi a1, a2, 32512
33 # CHECK: encoding: [0x12,0xd2,0x7f]
34 addmi a1, a2, 32512
36 # Instruction format RRR
37 # CHECK-INST: addx2 a2, a1, a5
38 # CHECK: encoding: [0x50,0x21,0x90]
39 addx2 a2, sp, a5
41 # Instruction format RRR
42 # CHECK-INST: addx4 a3, a1, a6
43 # CHECK: encoding: [0x60,0x31,0xa0]
44 addx4 a3, sp, a6
46 # Instruction format RRR
47 # CHECK-INST: addx8 a4, a1, a7
48 # CHECK: encoding: [0x70,0x41,0xb0]
49 addx8 a4, sp, a7
51 # Instruction format RRR
52 # CHECK-INST: neg a1, a3
53 # CHECK: encoding: [0x30,0x10,0x60]
54 neg a1, a3
56 # Instruction format RRR
57 # CHECK-INST: or a4, a5, a6
58 # CHECK: encoding: [0x60,0x45,0x20]
59 or a4, a5, a6
61 # Instruction format RRR
62 # CHECK-INST: sub a8, a2, a1
63 # CHECK: encoding: [0x10,0x82,0xc0]
64 sub a8, a2, a1
66 # Instruction format RRR
67 # CHECK-INST: subx2 a2, a1, a5
68 # CHECK: encoding: [0x50,0x21,0xd0]
69 subx2 a2, sp, a5
71 # Instruction format RRR
72 # CHECK-INST: subx4 a3, a1, a6
73 # CHECK: encoding: [0x60,0x31,0xe0]
74 subx4 a3, sp, a6
76 # Instruction format RRR
77 # CHECK-INST: subx8 a4, a1, a7
78 # CHECK: encoding: [0x70,0x41,0xf0]
79 subx8 a4, sp, a7
81 # Instruction format RRR
82 # CHECK-INST: xor a6, a4, a5
83 # CHECK: encoding: [0x50,0x64,0x30]
84 xor a6, a4, a5