From 866aa394ca72ca015e65fff55043bc1120b3b58d Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Wed, 10 Nov 2010 23:12:48 +0000 Subject: [PATCH] Fix ARM encoding of LDM+Return instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118730 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrFormats.td | 6 ++++-- lib/Target/ARM/ARMInstrInfo.td | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/Target/ARM/ARMInstrFormats.td b/lib/Target/ARM/ARMInstrFormats.td index 7add36b1acc..ddf0c82e556 100644 --- a/lib/Target/ARM/ARMInstrFormats.td +++ b/lib/Target/ARM/ARMInstrFormats.td @@ -941,9 +941,11 @@ class AXI4ld { bits<16> dsts; - let Inst{20} = 1; // L bit - let Inst{22} = 0; // S bit + bits<4> Rn; let Inst{27-25} = 0b100; + let Inst{22} = 0; // S bit + let Inst{20} = 1; // L bit + let Inst{19-16} = Rn; let Inst{15-0} = dsts; } class AXI4st; + "$Rn = $wb", []> { + bits<4> p; + let Inst{31-28} = p; + let Inst{24-23} = 0b01; + let Inst{21} = 1; +} // On non-Darwin platforms R9 is callee-saved. let isCall = 1,