Fix miscodegen of V_SET0 in PPC.
authorChris Lattner <sabre@nondot.org>
Sat, 18 Mar 2006 00:40:36 +0000 (00:40 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 18 Mar 2006 00:40:36 +0000 (00:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26836 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeEmitterGen.cpp

index b733fdf431675374c25fd126df0c1d2d3e6f1e24..15b35d5d5dbc8a7d875e3b9a7c84709b6f902666 100644 (file)
@@ -112,6 +112,10 @@ void CodeEmitterGen::run(std::ostream &o) {
         NewBI->setBit(middle, BI->getBit(middle));
       }
       BI = NewBI;
+      
+      // Update the bits in reversed order so that emitInstrOpBits will get the
+      // correct endianness.
+      R->getValue("Inst")->setValue(NewBI);
     }
 
     unsigned Value = 0;