From d7cabc0f817053477b832cd3b03215ff758e40fe Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 18 Mar 2006 00:40:36 +0000 Subject: [PATCH] Fix miscodegen of V_SET0 in PPC. llvm-svn: 26836 --- utils/TableGen/CodeEmitterGen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index b733fdf4316..15b35d5d5db 100644 --- a/utils/TableGen/CodeEmitterGen.cpp +++ b/utils/TableGen/CodeEmitterGen.cpp @@ -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;