[llvm-commits] [llvm] r76728 - /llvm/trunk/lib/Target/ARM/ARMInstrThumb.td

Evan Cheng evan.cheng at apple.com
Tue Jul 21 23:37:28 PDT 2009


Author: evancheng
Date: Wed Jul 22 01:37:28 2009
New Revision: 76728

URL: http://llvm.org/viewvc/llvm-project?rev=76728&view=rev
Log:
Add R12 to the list of registers clobbered by 16-bit Thumb calls as a pre-caution. r12 could be live once we have mixed 32-bit and 16-bit instructions.

Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrThumb.td

Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb.td?rev=76728&r1=76727&r2=76728&view=diff

==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrThumb.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrThumb.td Wed Jul 22 01:37:28 2009
@@ -166,8 +166,8 @@
                    "pop $dst1", []>;
 
 let isCall = 1,
-  Defs = [R0, R1, R2, R3, LR,
-          D0, D1, D2, D3, D4, D5, D6, D7] in {
+  Defs = [R0, R1, R2, R3, R12, LR,
+          D0, D1, D2, D3, D4, D5, D6, D7, CPSR] in {
   def tBL  : T1Ix2<(outs), (ins i32imm:$func, variable_ops),
                    "bl ${func:call}",
                    [(ARMtcall tglobaladdr:$func)]>;





More information about the llvm-commits mailing list