Skip to content

Commit d8f06ef

Browse files
[X86] Create all-one vector(v8i32) for TESTC(X,~X) == TESTC(X,-1) if X is v8f32
1 parent 21f68c7 commit d8f06ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47348,9 +47348,10 @@ static SDValue combinePTESTCC(SDValue EFLAGS, X86::CondCode &CC,
4734847348
if (SDValue NotOp1 = IsNOT(Op1, DAG)) {
4734947349
if (peekThroughBitcasts(NotOp1) == peekThroughBitcasts(Op0)) {
4735047350
SDLoc DL(EFLAGS);
47351-
return DAG.getNode(EFLAGS.getOpcode(), DL, VT,
47352-
DAG.getBitcast(OpVT, NotOp1),
47353-
DAG.getAllOnesConstant(DL, OpVT));
47351+
return DAG.getNode(
47352+
EFLAGS.getOpcode(), DL, VT, DAG.getBitcast(OpVT, NotOp1),
47353+
DAG.getBitcast(OpVT,
47354+
DAG.getAllOnesConstant(DL, NotOp1.getValueType())));
4735447355
}
4735547356
}
4735647357
}

0 commit comments

Comments
 (0)