mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-16 07:38:43 +00:00
a 21264 fix, and fix the operator precidence on an and -> zap check (should fix hundreds of test cases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21302 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
80563ff1a5
commit
3ae1829fe5
@ -25,9 +25,14 @@
|
|||||||
|
|
||||||
#include "llvm/Support/Mangler.h"
|
#include "llvm/Support/Mangler.h"
|
||||||
#include "llvm/ADT/Statistic.h"
|
#include "llvm/ADT/Statistic.h"
|
||||||
|
#include "llvm/Support/CommandLine.h"
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
namespace llvm {
|
||||||
|
extern cl::opt<bool> EnableAlphaFTOI;
|
||||||
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
|
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
|
||||||
|
|
||||||
@ -229,6 +234,9 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
|
|||||||
bool AlphaAsmPrinter::doInitialization(Module &M)
|
bool AlphaAsmPrinter::doInitialization(Module &M)
|
||||||
{
|
{
|
||||||
AsmPrinter::doInitialization(M);
|
AsmPrinter::doInitialization(M);
|
||||||
|
if(EnableAlphaFTOI)
|
||||||
|
O << "\t.arch ev6\n";
|
||||||
|
else
|
||||||
O << "\t.arch ev56\n";
|
O << "\t.arch ev56\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1695,9 +1695,9 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
|||||||
unsigned int build = 0;
|
unsigned int build = 0;
|
||||||
for(int i = 0; i < 8; ++i)
|
for(int i = 0; i < 8; ++i)
|
||||||
{
|
{
|
||||||
if (k & 0xFF == 0xFF)
|
if ((k & 0x00FF) == 0x00FF)
|
||||||
build |= 1 << i;
|
build |= 1 << i;
|
||||||
else if (k & 0xFF != 0)
|
else if ((k & 0x00FF) != 0)
|
||||||
{ build = 0; break; }
|
{ build = 0; break; }
|
||||||
k >>= 8;
|
k >>= 8;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user