#include "llvm/Support/Mangler.h"
#include "llvm/ADT/Statistic.h"
+#include "llvm/Support/CommandLine.h"
using namespace llvm;
+namespace llvm {
+ extern cl::opt<bool> EnableAlphaFTOI;
+}
+
namespace {
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
bool AlphaAsmPrinter::doInitialization(Module &M)
{
AsmPrinter::doInitialization(M);
- O << "\t.arch ev56\n";
+ if(EnableAlphaFTOI)
+ O << "\t.arch ev6\n";
+ else
+ O << "\t.arch ev56\n";
return false;
}
unsigned int build = 0;
for(int i = 0; i < 8; ++i)
{
- if (k & 0xFF == 0xFF)
+ if ((k & 0x00FF) == 0x00FF)
build |= 1 << i;
- else if (k & 0xFF != 0)
+ else if ((k & 0x00FF) != 0)
{ build = 0; break; }
k >>= 8;
}