mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
ARM "l" constraint for inline asm means R0-R7, also for Thumb2.
This is consistent with llvm-gcc's arm/constraints.md. Certain instructions (e.g. CBZ, CBNZ) require a low register, even in Thumb2 mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93436 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dfe7281fab
commit
09bf003983
@ -4258,10 +4258,10 @@ std::pair<unsigned, const TargetRegisterClass*>
|
||||
ARMTargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint,
|
||||
EVT VT) const {
|
||||
if (Constraint.size() == 1) {
|
||||
// GCC RS6000 Constraint Letters
|
||||
// GCC ARM Constraint Letters
|
||||
switch (Constraint[0]) {
|
||||
case 'l':
|
||||
if (Subtarget->isThumb1Only())
|
||||
if (Subtarget->isThumb())
|
||||
return std::make_pair(0U, ARM::tGPRRegisterClass);
|
||||
else
|
||||
return std::make_pair(0U, ARM::GPRRegisterClass);
|
||||
|
Loading…
Reference in New Issue
Block a user