mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
* Stop ignoring cc registers, since we actually use them in branches.
* Added comment as to why we are still ignoring predict and annul bits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf819454e4
commit
3d194ac26b
@ -63,8 +63,8 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
|
||||
for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
|
||||
if (Vals[i].getName() != "Inst" &&
|
||||
!Vals[i].getValue()->isComplete() &&
|
||||
/* ignore annul and predict bits since no one sets them yet */
|
||||
Vals[i].getName() != "annul" &&
|
||||
Vals[i].getName() != "cc" &&
|
||||
Vals[i].getName() != "predict")
|
||||
{
|
||||
o << " // op" << op << ": " << Vals[i].getName() << "\n"
|
||||
@ -105,6 +105,7 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// ignore annul and predict bits since no one sets them yet
|
||||
if (Vals[f].getName() == "annul" || Vals[f].getName() == "predict")
|
||||
--Offset;
|
||||
}
|
||||
|
@ -63,8 +63,8 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
|
||||
for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
|
||||
if (Vals[i].getName() != "Inst" &&
|
||||
!Vals[i].getValue()->isComplete() &&
|
||||
/* ignore annul and predict bits since no one sets them yet */
|
||||
Vals[i].getName() != "annul" &&
|
||||
Vals[i].getName() != "cc" &&
|
||||
Vals[i].getName() != "predict")
|
||||
{
|
||||
o << " // op" << op << ": " << Vals[i].getName() << "\n"
|
||||
@ -105,6 +105,7 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// ignore annul and predict bits since no one sets them yet
|
||||
if (Vals[f].getName() == "annul" || Vals[f].getName() == "predict")
|
||||
--Offset;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user