Addr1 instructions opcodes are encoded in bits 21-24; encode S bit.
authorEvan Cheng <evan.cheng@apple.com>
Sun, 31 Aug 2008 18:32:16 +0000 (18:32 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sun, 31 Aug 2008 18:32:16 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55590 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrFormats.td

index a7c994f2a3f34fe4350a144cd9881ad6e0845c2f..ec600b4c2c147f6c681797b81cb9606779362889 100644 (file)
@@ -124,15 +124,16 @@ class AI1<bits<4> opcod, dag oops, dag iops, Format f, string opc,
           string asm, list<dag> pattern>
   : I<opcod, oops, iops, AddrMode1, Size4Bytes, IndexModeNone, f, opc,
       asm, "", pattern> {
-  let Inst{5-6}  = 0;
-  let Inst{7-10} = opcod;
+  let Inst{21-24} = opcod;
+  let Inst{26-27} = 0;
 }
 class AsI1<bits<4> opcod, dag oops, dag iops, Format f, string opc,
            string asm, list<dag> pattern>
   : sI<opcod, oops, iops, AddrMode1, Size4Bytes, IndexModeNone, f, opc,
        asm, "", pattern> {
-  let Inst{5-6}  = 0;
-  let Inst{7-10} = opcod;
+  let Inst{20}    = 1;
+  let Inst{21-24} = opcod;
+  let Inst{26-27} = 0;
 }
 class AI2<bits<4> opcod, dag oops, dag iops, Format f, string opc,
           string asm, list<dag> pattern>