From dedec2b89dd05891d0e22093887b190462d5b82a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 16 Dec 2010 00:38:41 +0000 Subject: [PATCH] Add encodings for Thumb1 Spill and Restore pseudos. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121929 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrThumb.td | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index 2e8b46e8537..70aeb37eccc 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -694,7 +694,12 @@ let canFoldAsLoad = 1, mayLoad = 1, neverHasSideEffects = 1 in // FIXME: Pseudo for tLDRspi def tRestore : T1pIs<(outs tGPR:$dst), (ins t_addrmode_sp:$addr), IIC_iLoad_i, "ldr", "\t$dst, $addr", []>, - T1LdStSP<{1,?,?}>; + T1LdStSP<{1,?,?}> { + bits<3> Rt; + bits<8> addr; + let Inst{10-8} = Rt; + let Inst{7-0} = addr; +} // Load tconstpool // FIXME: Use ldr.n to work around a Darwin assembler bug. @@ -745,7 +750,12 @@ let mayStore = 1, neverHasSideEffects = 1 in // FIXME: Pseudo for tSTRspi def tSpill : T1pIs<(outs), (ins tGPR:$src, t_addrmode_sp:$addr), IIC_iStore_i, "str", "\t$src, $addr", []>, - T1LdStSP<{0,?,?}>; + T1LdStSP<{0,?,?}> { + bits<3> Rt; + bits<8> addr; + let Inst{10-8} = Rt; + let Inst{7-0} = addr; +} //===----------------------------------------------------------------------===// // Load / store multiple Instructions.