Teach PerfectShuffle to not generate files with embedded tab characters.
authorJim Grosbach <grosbach@apple.com>
Thu, 14 Oct 2010 00:12:49 +0000 (00:12 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 14 Oct 2010 00:12:49 +0000 (00:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116458 91177308-0d34-0410-b5e6-96231b3b80d8

utils/PerfectShuffle/PerfectShuffle.cpp

index b94a7d326d1911567c1f946cb59d1288d6edcaeb..98f8f4cc0cab8e58048cff0a18486c45e38fc437 100644 (file)
@@ -15,6 +15,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <iostream>
+#include <iomanip>
 #include <vector>
 #include <cassert>
 #include <cstdlib>
@@ -400,7 +401,7 @@ int main() {
     // LHS, and 13 bits of RHS = 32 bits.
     unsigned Val = (CostSat << 30) | (OpNum << 26) | (LHS << 13) | RHS;
 
-    std::cout << "  " << Val << "U,\t// ";
+    std::cout << "  " << std::setw(10) << Val << "U, // ";
     PrintMask(i, std::cout);
     std::cout << ": Cost " << ShufTab[i].Cost;
     std::cout << " " << (ShufTab[i].Op ? ShufTab[i].Op->getName() : "copy");