mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 11:39:35 +00:00
Implement the immediate part of the 'B' modifier.
Part of rdar://9119939 llvm-svn: 132023
This commit is contained in:
parent
9466b36c02
commit
a6d7ccb170
@ -417,6 +417,10 @@ bool ARMAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum,
|
||||
}
|
||||
// Fallthrough to unsupported.
|
||||
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.
|
||||
case 'm': // The base register of a memory operand.
|
||||
case 'M': // A register range suitable for LDM/STM.
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc < %s -march=arm -mattr=+vfp2
|
||||
; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s
|
||||
|
||||
define i32 @foo(float %scale, float %scale2) nounwind ssp {
|
||||
entry:
|
||||
@ -13,3 +13,11 @@ entry:
|
||||
}
|
||||
|
||||
!0 = metadata !{i32 56, i32 89, i32 128, i32 168}
|
||||
|
||||
define void @f0() nounwind ssp {
|
||||
entry:
|
||||
; CHECK: f0
|
||||
; CHECK: .word -1
|
||||
call void asm sideeffect ".word ${0:B} \0A\09", "i"(i32 0) nounwind, !srcloc !0
|
||||
ret void
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user