mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
The first operand to AND does not always have more than two operands. This
fixes MediaBench/toast with the dag selector git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23141 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6de08f4377
commit
15055733f8
@ -167,7 +167,8 @@ static bool isRotateAndMask(SDNode *N, unsigned Mask, bool IsShiftMask,
|
|||||||
unsigned Shift = 32;
|
unsigned Shift = 32;
|
||||||
unsigned Indeterminant = ~0; // bit mask marking indeterminant results
|
unsigned Indeterminant = ~0; // bit mask marking indeterminant results
|
||||||
unsigned Opcode = N->getOpcode();
|
unsigned Opcode = N->getOpcode();
|
||||||
if (!isIntImmediate(N->getOperand(1).Val, Shift) || (Shift > 31))
|
if (N->getNumOperands() != 2 ||
|
||||||
|
!isIntImmediate(N->getOperand(1).Val, Shift) || (Shift > 31))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (Opcode == ISD::SHL) {
|
if (Opcode == ISD::SHL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user