mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-25 05:34:59 +00:00
This shouldn't be necessary
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59090 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a0ab1387a
commit
068d1c51cc
@ -93,7 +93,8 @@ def immSExt16int : PatLeaf<(imm), [{ //(int)imm fits in a 16 bit sign extended
|
|||||||
}], SExt16>;
|
}], SExt16>;
|
||||||
|
|
||||||
def zappat : PatFrag<(ops node:$LHS), (and node:$LHS, imm:$L), [{
|
def zappat : PatFrag<(ops node:$LHS), (and node:$LHS, imm:$L), [{
|
||||||
ConstantSDNode *RHS = cast<ConstantSDNode>(N->getOperand(1));
|
ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N->getOperand(1));
|
||||||
|
if (!RHS) return 0;
|
||||||
uint64_t build = get_zapImm(N->getOperand(0), (uint64_t)RHS->getZExtValue());
|
uint64_t build = get_zapImm(N->getOperand(0), (uint64_t)RHS->getZExtValue());
|
||||||
return build != 0;
|
return build != 0;
|
||||||
}]>;
|
}]>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user