Skip to content

Commit 3e07f41

Browse files
committed
[PowerPC] Use the same lowering rule for vector rounding instructions
They should have the same lowering rule.
1 parent 93d445c commit 3e07f41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,17 +1049,17 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
10491049
// so we can only code-gen them with fpexcept.ignore.
10501050
setOperationAction(ISD::STRICT_FNEARBYINT, MVT::f64, Custom);
10511051
setOperationAction(ISD::STRICT_FNEARBYINT, MVT::f32, Custom);
1052+
setOperationAction(ISD::STRICT_FNEARBYINT, MVT::v2f64, Custom);
1053+
setOperationAction(ISD::STRICT_FNEARBYINT, MVT::v4f32, Custom);
10521054

10531055
setOperationAction(ISD::FFLOOR, MVT::v2f64, Legal);
10541056
setOperationAction(ISD::FCEIL, MVT::v2f64, Legal);
10551057
setOperationAction(ISD::FTRUNC, MVT::v2f64, Legal);
1056-
setOperationAction(ISD::FNEARBYINT, MVT::v2f64, Legal);
10571058
setOperationAction(ISD::FRINT, MVT::v2f64, Legal);
10581059
setOperationAction(ISD::FROUND, MVT::v2f64, Legal);
10591060
setOperationAction(ISD::FROUND, MVT::f64, Legal);
10601061
setOperationAction(ISD::FRINT, MVT::f64, Legal);
10611062

1062-
setOperationAction(ISD::FNEARBYINT, MVT::v4f32, Legal);
10631063
setOperationAction(ISD::FRINT, MVT::v4f32, Legal);
10641064
setOperationAction(ISD::FROUND, MVT::v4f32, Legal);
10651065
setOperationAction(ISD::FROUND, MVT::f32, Legal);

0 commit comments

Comments
 (0)