[llvm-branch-commits] [llvm-branch] r104929 - in /llvm/branches/Apple/Hermes: lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp test/CodeGen/ARM/inlineasm.ll
Bob Wilson
bob.wilson at apple.com
Thu May 27 19:27:27 PDT 2010
Author: bwilson
Date: Thu May 27 21:27:27 2010
New Revision: 104929
URL: http://llvm.org/viewvc/llvm-project?rev=104929&view=rev
Log:
Temporarily revert 104892, so we can tag without it.
Modified:
llvm/branches/Apple/Hermes/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
llvm/branches/Apple/Hermes/test/CodeGen/ARM/inlineasm.ll
Modified: llvm/branches/Apple/Hermes/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp?rev=104929&r1=104928&r2=104929&view=diff
==============================================================================
--- llvm/branches/Apple/Hermes/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp (original)
+++ llvm/branches/Apple/Hermes/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp Thu May 27 21:27:27 2010
@@ -989,10 +989,20 @@
printOperand(MI, OpNum);
return false;
case 'Q':
+ if (TM.getTargetData()->isLittleEndian())
+ break;
+ // Fallthrough
case 'R':
- case 'H':
- llvm_unreachable("llvm does not support 'Q', 'R', and 'H' modifiers!");
- return true;
+ if (TM.getTargetData()->isBigEndian())
+ break;
+ // Fallthrough
+ case 'H': // Write second word of DI / DF reference.
+ // Verify that this operand has two consecutive registers.
+ if (!MI->getOperand(OpNum).isReg() ||
+ OpNum+1 == MI->getNumOperands() ||
+ !MI->getOperand(OpNum+1).isReg())
+ return true;
+ ++OpNum; // Return the high-part.
}
}
Modified: llvm/branches/Apple/Hermes/test/CodeGen/ARM/inlineasm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/test/CodeGen/ARM/inlineasm.ll?rev=104929&r1=104928&r2=104929&view=diff
==============================================================================
--- llvm/branches/Apple/Hermes/test/CodeGen/ARM/inlineasm.ll (original)
+++ llvm/branches/Apple/Hermes/test/CodeGen/ARM/inlineasm.ll Thu May 27 21:27:27 2010
@@ -6,6 +6,14 @@
}
define void @test2() {
+ %tmp1 = call i64 asm "ldmia $1!, {$0, ${0:H}}", "=r,=*r,1"( i32** null, i32* null ) ; <i64> [#uses=2]
+ %tmp2 = lshr i64 %tmp1, 32 ; <i64> [#uses=1]
+ %tmp3 = trunc i64 %tmp2 to i32 ; <i32> [#uses=1]
+ %tmp4 = call i32 asm "pkhbt $0, $1, $2, lsl #16", "=r,r,r"( i32 0, i32 %tmp3 ) ; <i32> [#uses=0]
+ ret void
+}
+
+define void @test3() {
tail call void asm sideeffect "/* number: ${0:c} */", "i"( i32 1 )
ret void
}
More information about the llvm-branch-commits
mailing list