diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-18 00:40:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-18 00:40:36 +0000 |
commit | 485c00f7e8153e9d281c4f542593f503d022043c (patch) | |
tree | a14cd81685f35023fd74c2efecf21c317af4a617 /utils/TableGen/CodeEmitterGen.cpp | |
parent | 79691bc1f3434f08f2014ecaa31c7213b71b0b34 (diff) |
Fix miscodegen of V_SET0 in PPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r-- | utils/TableGen/CodeEmitterGen.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index b733fdf431..15b35d5d5d 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; |