forked from OSchip/llvm-project
Thumb assembly parsing and encoding for LDR(literal).
llvm-svn: 138052
This commit is contained in:
parent
23983d6bd9
commit
181d2f92b5
|
@ -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…
Reference in New Issue