print encodings like this:
authorChris Lattner <sabre@nondot.org>
Fri, 5 Feb 2010 22:20:08 +0000 (22:20 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 5 Feb 2010 22:20:08 +0000 (22:20 +0000)
pslld 69, %mm3                ## encoding: [0x0f,0xf2,0x1c,0x25,0x45,0x00,0x00,0x00]

instead of like this:
pslld 69, %mm3                ## encoding: [0x0f,0xf2,0x1c,0x25,0x45,0000,0000,0000]

this only affects 0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95441 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCAsmStreamer.cpp

index 753709f621e8ecb9d04d17d23ef630c0e9f076cc..475e588ec806dfa1c52d7a1182067dc4aa1f6d56 100644 (file)
@@ -552,7 +552,7 @@ void MCAsmStreamer::EmitInstruction(const MCInst &Inst) {
     for (unsigned i = 0, e = Code.size(); i != e; ++i) {
       if (i)
         OS << ',';
-      OS << format("%#04x", uint8_t(Code[i]));
+      OS << format("0x%02x", uint8_t(Code[i]));
     }
     OS << "]\n";
   }