Fix Thumb2 encoding of the S bit.
[oota-llvm.git] / lib / Target / ARM / ARMInstrFormats.td
index c84f1cee2a599b2be0d4772823e4d0612ad2c425..8a7603ad9096129c4f43f0bbca5a5f2397e638fb 100644 (file)
@@ -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);