Skip to content

Commit 0362e0d

Browse files
committed
Add TODOs to handle ppcf128 for one of the halves.
1 parent 9a69209 commit 0362e0d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,6 +1969,7 @@ void DAGTypeLegalizer::ExpandFloatRes_FNEG(SDNode *N, SDValue &Lo,
19691969

19701970
void DAGTypeLegalizer::ExpandFloatRes_AssertNoFPClass(SDNode *N, SDValue &Lo,
19711971
SDValue &Hi) {
1972+
// TODO: Handle ppcf128 by preserving AssertNoFPClass for one of the halves.
19721973
SDLoc dl(N);
19731974
GetExpandedFloat(N->getOperand(0), Lo, Hi);
19741975
}

llvm/test/CodeGen/PowerPC/nofpclass.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s
33
; RUN: llc -mtriple=powerpc64-ibm-aix-xcoff < %s | FileCheck %s
44

5+
; TODO: Update this test after adding the proper expansion of nofpclass for
6+
; ppc_fp128 to test with more masks and to demonstrate preserving nofpclass
7+
; after legalization.
8+
59
define ppc_fp128 @f(ppc_fp128 nofpclass(nan) %s) {
610
; CHECK-LABEL: f:
711
; CHECK: # %bb.0: # %entry

0 commit comments

Comments
 (0)