mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
[X86] Attempt to fix signed and unsigned comparison warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318010 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f9380c926
commit
d024fd1406
@ -19771,7 +19771,7 @@ SDValue X86TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
|
||||
// (1) With suppress-all-exceptions (sae) or rounding mode- 6 operands
|
||||
// (2) With rounding mode and sae - 7 operands.
|
||||
bool HasRounding = IntrWithRoundingModeOpcode != 0;
|
||||
if (Op.getNumOperands() == (5 + HasRounding)) {
|
||||
if (Op.getNumOperands() == (5U + HasRounding)) {
|
||||
if (HasRounding) {
|
||||
SDValue Rnd = Op.getOperand(5);
|
||||
if (!isRoundModeCurDirection(Rnd))
|
||||
@ -19784,7 +19784,7 @@ SDValue X86TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
|
||||
Mask, passThru, Subtarget, DAG);
|
||||
}
|
||||
|
||||
assert(Op.getNumOperands() == (6 + HasRounding) &&
|
||||
assert(Op.getNumOperands() == (6U + HasRounding) &&
|
||||
"Unexpected intrinsic form");
|
||||
SDValue RoundingMode = Op.getOperand(5);
|
||||
if (HasRounding) {
|
||||
|
Loading…
Reference in New Issue
Block a user