summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMInstrFormats.td
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-12-07 20:50:15 +0000
committerOwen Anderson <resistor@mac.com>2010-12-07 20:50:15 +0000
commitbdf714450b70509538aa5a8a676034418ce827b6 (patch)
tree88c6873b05cd1cd74b1e24995cf95b0e19e0954b /lib/Target/ARM/ARMInstrFormats.td
parentbf149c75b39be3003f7f679b80977e595b6b441d (diff)
downloadllvm-bdf714450b70509538aa5a8a676034418ce827b6.tar.gz
llvm-bdf714450b70509538aa5a8a676034418ce827b6.tar.bz2
llvm-bdf714450b70509538aa5a8a676034418ce827b6.tar.xz
Fix Thumb2 encoding of the S bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrFormats.td')
-rw-r--r--lib/Target/ARM/ARMInstrFormats.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrFormats.td b/lib/Target/ARM/ARMInstrFormats.td
index c84f1cee2a..8a7603ad90 100644
--- a/lib/Target/ARM/ARMInstrFormats.td
+++ b/lib/Target/ARM/ARMInstrFormats.td
@@ -961,6 +961,9 @@ class Thumb2sI<dag oops, dag iops, AddrMode am, SizeFlagVal sz,
InstrItinClass itin,
string opc, string asm, string cstr, list<dag> pattern>
: InstARM<am, sz, IndexModeNone, ThumbFrm, GenericDomain, cstr, itin> {
+ bits<1> s; // condition-code set flag ('1' if the insn should set the flags)
+ let Inst{20} = s;
+
let OutOperandList = oops;
let InOperandList = !con(iops, (ins pred:$p, cc_out:$s));
let AsmString = !strconcat(opc, "${s}${p}", asm);