mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
95adf91f29
The immediate field should be encoded as "imm - 1" as the CPU always adds one to that field. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195004 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
1.0 KiB
ArmAsm
19 lines
1.0 KiB
ArmAsm
# RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 -mattr=+msa -arch=mips | FileCheck %s
|
|
#
|
|
# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 -mattr=+msa -arch=mips -filetype=obj -o - | llvm-objdump -d -triple=mipsel-unknown-linux -mattr=+msa -arch=mips - | FileCheck %s -check-prefix=CHECKOBJDUMP
|
|
#
|
|
# CHECK: lsa $8, $9, $10, 1 # encoding: [0x01,0x2a,0x40,0x05]
|
|
# CHECK: lsa $8, $9, $10, 2 # encoding: [0x01,0x2a,0x40,0x45]
|
|
# CHECK: lsa $8, $9, $10, 3 # encoding: [0x01,0x2a,0x40,0x85]
|
|
# CHECK: lsa $8, $9, $10, 4 # encoding: [0x01,0x2a,0x40,0xc5]
|
|
|
|
# CHECKOBJDUMP: lsa $8, $9, $10, 1
|
|
# CHECKOBJDUMP: lsa $8, $9, $10, 2
|
|
# CHECKOBJDUMP: lsa $8, $9, $10, 3
|
|
# CHECKOBJDUMP: lsa $8, $9, $10, 4
|
|
|
|
lsa $8, $9, $10, 1
|
|
lsa $8, $9, $10, 2
|
|
lsa $8, $9, $10, 3
|
|
lsa $8, $9, $10, 4
|