mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Implement the arm 'L' asm modifier.
Part of rdar://9119939 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132024 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e1739d598d
commit
4db7dec70b
@ -415,13 +415,17 @@ bool ARMAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum,
|
||||
(((Reg % 2) == 1) ? "[0]" : "[1]");
|
||||
return false;
|
||||
}
|
||||
// Fallthrough to unsupported.
|
||||
return true;
|
||||
case 'B': // Bitwise inverse of integer or symbol without a preceding #.
|
||||
if (!MI->getOperand(OpNum).isImm())
|
||||
return true;
|
||||
O << ~(MI->getOperand(OpNum).getImm());
|
||||
return false;
|
||||
case 'L': // The low 16 bits of an immediate constant.
|
||||
if (!MI->getOperand(OpNum).isImm())
|
||||
return true;
|
||||
O << (MI->getOperand(OpNum).getImm() & 0xffff);
|
||||
return false;
|
||||
case 'm': // The base register of a memory operand.
|
||||
case 'M': // A register range suitable for LDM/STM.
|
||||
case 'p': // The high single-precision register of a VFP double-precision
|
||||
|
@ -21,3 +21,11 @@ entry:
|
||||
call void asm sideeffect ".word ${0:B} \0A\09", "i"(i32 0) nounwind, !srcloc !0
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @f1() nounwind ssp {
|
||||
entry:
|
||||
; CHECK: f1
|
||||
; CHECK: .word 65535
|
||||
call void asm sideeffect ".word ${0:L} \0A\09", "i"(i32 -1) nounwind, !srcloc !0
|
||||
ret void
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user