Skip to content

Commit dbaf6c8

Browse files
paperchaliceHoney Goyal
authored andcommitted
[PowerPC] Use the same lowering rule for vector rounding instructions (llvm#166307)
They should have the same lowering rule.
1 parent d365cd1 commit dbaf6c8

File tree

2 files changed

+326
-2
lines changed

2 files changed

+326
-2
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,17 +1061,17 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
10611061
// so we can only code-gen them with fpexcept.ignore.
10621062
setOperationAction(ISD::STRICT_FNEARBYINT, MVT::f64, Custom);
10631063
setOperationAction(ISD::STRICT_FNEARBYINT, MVT::f32, Custom);
1064+
setOperationAction(ISD::STRICT_FNEARBYINT, MVT::v2f64, Custom);
1065+
setOperationAction(ISD::STRICT_FNEARBYINT, MVT::v4f32, Custom);
10641066

10651067
setOperationAction(ISD::FFLOOR, MVT::v2f64, Legal);
10661068
setOperationAction(ISD::FCEIL, MVT::v2f64, Legal);
10671069
setOperationAction(ISD::FTRUNC, MVT::v2f64, Legal);
1068-
setOperationAction(ISD::FNEARBYINT, MVT::v2f64, Legal);
10691070
setOperationAction(ISD::FRINT, MVT::v2f64, Legal);
10701071
setOperationAction(ISD::FROUND, MVT::v2f64, Legal);
10711072
setOperationAction(ISD::FROUND, MVT::f64, Legal);
10721073
setOperationAction(ISD::FRINT, MVT::f64, Legal);
10731074

1074-
setOperationAction(ISD::FNEARBYINT, MVT::v4f32, Legal);
10751075
setOperationAction(ISD::FRINT, MVT::v4f32, Legal);
10761076
setOperationAction(ISD::FROUND, MVT::v4f32, Legal);
10771077
setOperationAction(ISD::FROUND, MVT::f32, Legal);

0 commit comments

Comments
 (0)