[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)

Lu Weining via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 20 00:34:02 PST 2024


================
@@ -141,7 +141,8 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
 
     setOperationAction(ISD::BITREVERSE, MVT::i32, Custom);
     setOperationAction(ISD::BSWAP, MVT::i32, Custom);
-    setOperationAction({ISD::UDIV, ISD::UREM}, MVT::i32, Custom);
+    setOperationAction({ISD::SDIV, ISD::UDIV, ISD::SREM, ISD::UREM}, MVT::i32,
----------------
SixWeining wrote:

Is this a relevant change? Or can it be split into a separate PR?

https://github.com/llvm/llvm-project/pull/116764


More information about the cfe-commits mailing list