mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Thumb assembly parsing and encoding for LDR(literal).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ecd8589683
commit
67b95f902a
@ -79,7 +79,7 @@ public:
|
||||
{ "fixup_arm_thumb_bl", 0, 32, MCFixupKindInfo::FKF_IsPCRel },
|
||||
{ "fixup_arm_thumb_blx", 0, 32, MCFixupKindInfo::FKF_IsPCRel },
|
||||
{ "fixup_arm_thumb_cb", 0, 16, MCFixupKindInfo::FKF_IsPCRel },
|
||||
{ "fixup_arm_thumb_cp", 1, 8, MCFixupKindInfo::FKF_IsPCRel },
|
||||
{ "fixup_arm_thumb_cp", 0, 8, MCFixupKindInfo::FKF_IsPCRel },
|
||||
{ "fixup_arm_thumb_bcc", 0, 8, MCFixupKindInfo::FKF_IsPCRel },
|
||||
// movw / movt: 16-bits immediate but scattered into two chunks 0 - 12, 16 - 19.
|
||||
{ "fixup_arm_movt_hi16", 0, 20, 0 },
|
||||
|
@ -194,3 +194,11 @@ _func:
|
||||
@ CHECK: ldr r2, [sp, #24] @ encoding: [0x06,0x9a]
|
||||
@ CHECK: ldr r3, [sp, #1020] @ encoding: [0xff,0x9b]
|
||||
|
||||
|
||||
@------------------------------------------------------------------------------
|
||||
@ LDR (literal)
|
||||
@------------------------------------------------------------------------------
|
||||
ldr r1, _foo
|
||||
|
||||
@ CHECK: ldr r1, _foo @ encoding: [A,0x49]
|
||||
@ fixup A - offset: 0, value: _foo, kind: fixup_arm_thumb_cp
|
||||
|
Loading…
x
Reference in New Issue
Block a user