[clang] [llvm] [LoongArch] Support LA V1.1 feature that div.w[u] and mod.w[u] instructions with inputs not signed-extended. (PR #116764)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 20 01:30:05 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,
----------------
tangaac wrote:
This PR is related with #92205, except for the part of div32
A separate PR may be a good choice.
https://github.com/llvm/llvm-project/pull/116764
More information about the cfe-commits
mailing list