mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Implement PowerPC/eqv-andc-orc-nor.ll:EQV3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e63428b2d
commit
1bd8b7b06e
@ -1012,12 +1012,16 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
|
||||
N = I;
|
||||
return SDOperand(N, 0);
|
||||
}
|
||||
// Finally, check for the case where we are being asked to select
|
||||
// Check for the case where we are being asked to select
|
||||
// xor (not(a), b) which is equivalent to not(xor a, b), which is eqv
|
||||
if (isOprNot(N->getOperand(0).Val))
|
||||
CurDAG->SelectNodeTo(N, PPC::EQV, MVT::i32,
|
||||
Select(N->getOperand(0).getOperand(0)),
|
||||
Select(N->getOperand(1)));
|
||||
else if (isOprNot(N->getOperand(1).Val))
|
||||
CurDAG->SelectNodeTo(N, PPC::EQV, MVT::i32,
|
||||
Select(N->getOperand(1).getOperand(0)),
|
||||
Select(N->getOperand(0)));
|
||||
else
|
||||
CurDAG->SelectNodeTo(N, PPC::XOR, MVT::i32, Select(N->getOperand(0)),
|
||||
Select(N->getOperand(1)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user