[clang] [llvm] [RISCV] Implement Clang Builtins for XCValu Extension in CV32E40P (PR #100684)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 22:25:01 PDT 2024


================
@@ -59,16 +59,26 @@ let TargetPrefix = "riscv" in {
                             [IntrNoMem, IntrWillReturn, IntrSpeculatable,
                             ImmArg<ArgIndex<1>>, ImmArg<ArgIndex<2>>]>;
 
+  def int_riscv_cv_alu_slet  : ScalarCoreVAluGprGprIntrinsic;
+  def int_riscv_cv_alu_sletu : ScalarCoreVAluGprGprIntrinsic;
+  def int_riscv_cv_alu_min   : ScalarCoreVAluGprGprIntrinsic;
----------------
topperc wrote:

I don't think we need builtins for max/min. You can express those directly in C and InstCombine will make llvm.min/max intrinsics.

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


More information about the llvm-commits mailing list