[PATCH 1/3] Mips: Only set divrem i64 to custom on 64bit
Daniel Sanders
Daniel.Sanders at imgtec.com
Fri Oct 17 02:26:59 PDT 2014
LGTM
> -----Original Message-----
> From: Jan Vesely [mailto:jv356 at scarletmail.rutgers.edu] On Behalf Of Jan
> Vesely
> Sent: 16 October 2014 17:25
> To: llvm-commits at cs.uiuc.edu
> Cc: Tom Stellard; Matt Arsenault; Daniel Sanders
> Subject: [PATCH 1/3] Mips: Only set divrem i64 to custom on 64bit
>
> CC: Daniel Sanders <daniel.sanders at imgtec.com>
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> ---
> lib/Target/Mips/MipsSEISelLowering.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/Target/Mips/MipsSEISelLowering.cpp
> b/lib/Target/Mips/MipsSEISelLowering.cpp
> index 9e7c63c..b6cd5c5 100644
> --- a/lib/Target/Mips/MipsSEISelLowering.cpp
> +++ b/lib/Target/Mips/MipsSEISelLowering.cpp
> @@ -128,6 +128,8 @@ MipsSETargetLowering::MipsSETargetLowering(const
> MipsTargetMachine &TM,
> if (Subtarget.isGP64bit()) {
> setOperationAction(ISD::MULHS, MVT::i64, Custom);
> setOperationAction(ISD::MULHU, MVT::i64, Custom);
> + setOperationAction(ISD::SDIVREM, MVT::i64, Custom);
> + setOperationAction(ISD::UDIVREM, MVT::i64, Custom);
> }
>
> setOperationAction(ISD::INTRINSIC_WO_CHAIN, MVT::i64, Custom);
> @@ -135,8 +137,6 @@ MipsSETargetLowering::MipsSETargetLowering(const
> MipsTargetMachine &TM,
>
> setOperationAction(ISD::SDIVREM, MVT::i32, Custom);
> setOperationAction(ISD::UDIVREM, MVT::i32, Custom);
> - setOperationAction(ISD::SDIVREM, MVT::i64, Custom);
> - setOperationAction(ISD::UDIVREM, MVT::i64, Custom);
> setOperationAction(ISD::ATOMIC_FENCE, MVT::Other, Custom);
> setOperationAction(ISD::LOAD, MVT::i32, Custom);
> setOperationAction(ISD::STORE, MVT::i32, Custom);
> --
> 1.9.3
More information about the llvm-commits
mailing list