mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-15 20:06:46 +00:00
7ce057983e
Memory operand parsing is a bit haphazzard at the moment, in no small part due to the even more haphazzard representations of memory operands in the .td files. Start cleaning that all up, at least a bit. The addressing modes in the .td files will be being simplified to not be so monolithic, especially with regards to immediate vs. register offsets and post-indexed addressing. addrmode3 is on its way with this patch, for example. This patch is foundational to enable going back to smaller incremental patches for the individual memory referencing instructions themselves. It does just enough to get the basics in place and handle the "make check" regression tests we already have. Follow-up work will be fleshing out the details and adding more robust test cases for the individual instructions, starting with ARM mode and moving from there into Thumb and Thumb2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136845 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
371 B
ArmAsm
15 lines
371 B
ArmAsm
@ RUN: llvm-mc -triple thumbv7-unknown-unknown -show-encoding %s > %t
|
|
@ RUN: FileCheck < %t %s
|
|
|
|
@ FIXME: This test is completely bogus. Replace it with real tests.
|
|
@ XFAIL: *
|
|
.syntax unified
|
|
.text
|
|
|
|
@ FIXME: This is not the correct instruction representation, but at least we are
|
|
@ parsing the ldr to something.
|
|
@
|
|
@ CHECK: ldr r0, [r7, #258]
|
|
ldr r0, [r7, #-8]
|
|
|