[llvm-commits] [llvm] r83237 - in /llvm/trunk: lib/Target/ARM/Thumb1InstrInfo.cpp test/CodeGen/Thumb/push.ll
Evan Cheng
evan.cheng at apple.com
Thu Oct 1 22:03:07 PDT 2009
Author: evancheng
Date: Fri Oct 2 00:03:07 2009
New Revision: 83237
URL: http://llvm.org/viewvc/llvm-project?rev=83237&view=rev
Log:
Forgot about ARM::tPUSH. It also has a new writeback operand.
Added:
llvm/trunk/test/CodeGen/Thumb/push.ll
Modified:
llvm/trunk/lib/Target/ARM/Thumb1InstrInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb1InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb1InstrInfo.cpp?rev=83237&r1=83236&r2=83237&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb1InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb1InstrInfo.cpp Fri Oct 2 00:03:07 2009
@@ -156,6 +156,7 @@
MachineInstrBuilder MIB = BuildMI(MBB, MI, DL, get(ARM::tPUSH));
AddDefaultPred(MIB);
+ MIB.addReg(0); // No write back.
for (unsigned i = CSI.size(); i != 0; --i) {
unsigned Reg = CSI[i-1].getReg();
// Add the callee-saved register as live-in. It's killed at the spill.
Added: llvm/trunk/test/CodeGen/Thumb/push.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Thumb/push.ll?rev=83237&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Thumb/push.ll (added)
+++ llvm/trunk/test/CodeGen/Thumb/push.ll Fri Oct 2 00:03:07 2009
@@ -0,0 +1,10 @@
+; RUN: llc < %s -mtriple=thumb-apple-darwin -disable-fp-elim | FileCheck %s
+; rdar://7268481
+
+define arm_apcscc void @t() nounwind {
+; CHECK: t:
+; CHECK-NEXT : push {r7}
+entry:
+ call void asm sideeffect ".long 0xe7ffdefe", ""() nounwind
+ ret void
+}
More information about the llvm-commits
mailing list