Skip to content

Commit 5abe500

Browse files
committed
Intrinsic llvm.ldexp.* should not be affected.
1 parent 2576758 commit 5abe500

File tree

4 files changed

+1
-1482
lines changed

4 files changed

+1
-1482
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2585,7 +2585,7 @@ SDValue DAGTypeLegalizer::PromoteIntOp_ExpOp(SDNode *N) {
25852585
: RTLIB::getLDEXP(N->getValueType(0));
25862586

25872587
if (LC == RTLIB::UNKNOWN_LIBCALL || !TLI.getLibcallName(LC)) {
2588-
if (N->getValueType(0).isVector())
2588+
if (IsPowI && N->getValueType(0).isVector())
25892589
return DAG.UnrollVectorOp(N);
25902590
SmallVector<SDValue, 3> NewOps(N->ops());
25912591
NewOps[1 + OpOffset] = SExtPromotedInteger(N->getOperand(1 + OpOffset));

llvm/test/CodeGen/LoongArch/lasx/fldexp.ll

Lines changed: 0 additions & 142 deletions
This file was deleted.

llvm/test/CodeGen/LoongArch/lsx/fldexp.ll

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)