mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
fix an assertion failure in treeadd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23120 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd22dc85ea
commit
528f58e813
@ -996,7 +996,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
|
|||||||
if (isOprNot(N)) {
|
if (isOprNot(N)) {
|
||||||
unsigned Opc;
|
unsigned Opc;
|
||||||
SDOperand Val = Select(N->getOperand(0));
|
SDOperand Val = Select(N->getOperand(0));
|
||||||
switch (Val.getTargetOpcode()) {
|
switch (Val.isTargetOpcode() ? Val.getTargetOpcode() : 0) {
|
||||||
default: Opc = 0; break;
|
default: Opc = 0; break;
|
||||||
case PPC::OR: Opc = PPC::NOR; break;
|
case PPC::OR: Opc = PPC::NOR; break;
|
||||||
case PPC::AND: Opc = PPC::NAND; break;
|
case PPC::AND: Opc = PPC::NAND; break;
|
||||||
@ -1094,7 +1094,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
|
|||||||
MVT::ValueType Ty = N->getValueType(0);
|
MVT::ValueType Ty = N->getValueType(0);
|
||||||
if (Val.Val->hasOneUse()) {
|
if (Val.Val->hasOneUse()) {
|
||||||
unsigned Opc;
|
unsigned Opc;
|
||||||
switch (Val.getTargetOpcode()) {
|
switch (Val.isTargetOpcode() ? Val.getTargetOpcode() : 0) {
|
||||||
default: Opc = 0; break;
|
default: Opc = 0; break;
|
||||||
case PPC::FABS: Opc = PPC::FNABS; break;
|
case PPC::FABS: Opc = PPC::FNABS; break;
|
||||||
case PPC::FMADD: Opc = PPC::FNMADD; break;
|
case PPC::FMADD: Opc = PPC::FNMADD; break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user