1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
# RUN: llvm-mc %s -triple=xtensa -show-encoding \
# RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
.align 4
LBL0:
# Instruction format RRR
# CHECK-INST: abs a5, a6
# CHECK: encoding: [0x60,0x51,0x60]
abs a5, a6
# Instruction format RRR
# CHECK-INST: add a3, a9, a4
# CHECK: encoding: [0x40,0x39,0x80]
add a3, a9, a4
# CHECK-INST: add a15, a9, a1
# CHECK: encoding: [0x10,0xf9,0x80]
add a15, a9, sp
# Instruction format RRI8
# CHECK-INST: addi a8, a1, -128
# CHECK: encoding: [0x82,0xc1,0x80]
addi a8, sp, -128
# CHECK-INST: addi a8, a1, -12
# CHECK: encoding: [0x82,0xc1,0xf4]
addi a8, a1, -12
# Instruction format RRI8
# CHECK-INST: addmi a1, a2, 32512
# CHECK: encoding: [0x12,0xd2,0x7f]
addmi a1, a2, 32512
# Instruction format RRR
# CHECK-INST: addx2 a2, a1, a5
# CHECK: encoding: [0x50,0x21,0x90]
addx2 a2, sp, a5
# Instruction format RRR
# CHECK-INST: addx4 a3, a1, a6
# CHECK: encoding: [0x60,0x31,0xa0]
addx4 a3, sp, a6
# Instruction format RRR
# CHECK-INST: addx8 a4, a1, a7
# CHECK: encoding: [0x70,0x41,0xb0]
addx8 a4, sp, a7
# Instruction format RRR
# CHECK-INST: neg a1, a3
# CHECK: encoding: [0x30,0x10,0x60]
neg a1, a3
# Instruction format RRR
# CHECK-INST: or a4, a5, a6
# CHECK: encoding: [0x60,0x45,0x20]
or a4, a5, a6
# Instruction format RRR
# CHECK-INST: sub a8, a2, a1
# CHECK: encoding: [0x10,0x82,0xc0]
sub a8, a2, a1
# Instruction format RRR
# CHECK-INST: subx2 a2, a1, a5
# CHECK: encoding: [0x50,0x21,0xd0]
subx2 a2, sp, a5
# Instruction format RRR
# CHECK-INST: subx4 a3, a1, a6
# CHECK: encoding: [0x60,0x31,0xe0]
subx4 a3, sp, a6
# Instruction format RRR
# CHECK-INST: subx8 a4, a1, a7
# CHECK: encoding: [0x70,0x41,0xf0]
subx8 a4, sp, a7
# Instruction format RRR
# CHECK-INST: xor a6, a4, a5
# CHECK: encoding: [0x50,0x64,0x30]
xor a6, a4, a5
|