https://gcc.gnu.org/g:2990f5802a727cbd717587c3a345fa940193049f

commit r15-4185-g2990f5802a727cbd717587c3a345fa940193049f
Author: Tsung Chun Lin <tclin...@gmail.com>
Date:   Tue Oct 8 17:44:38 2024 -0600

    RISC-V: Enable builtin __riscv_mul with Zmmul extension.
    
    From d5b254e19d1f37fe27c7e98a0160e5c22446cfea Mon Sep 17 00:00:00 2001
    From: Jim Lin <j...@andestech.com>
    Date: Tue, 8 Oct 2024 13:14:32 +0800
    Subject: [PATCH] RISC-V: Enable builtin __riscv_mul with Zmmul extension.
    
    gcc/ChangeLog:
    
            * config/riscv/riscv-c.cc: (riscv_cpu_cpp_builtins):
            Enable builtin __riscv_mul with Zmmul extension.

Diff:
---
 gcc/config/riscv/riscv-c.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/riscv/riscv-c.cc b/gcc/config/riscv/riscv-c.cc
index 71112d9c66d7..7e9c478e97bb 100644
--- a/gcc/config/riscv/riscv-c.cc
+++ b/gcc/config/riscv/riscv-c.cc
@@ -123,7 +123,7 @@ riscv_cpu_cpp_builtins (cpp_reader *pfile)
   if (TARGET_ATOMIC)
     builtin_define ("__riscv_atomic");
 
-  if (TARGET_MUL)
+  if (TARGET_ZMMUL)
     builtin_define ("__riscv_mul");
   if (TARGET_DIV)
     builtin_define ("__riscv_div");

Reply via email to