Skip to content

Commit 2990f58

Browse files
tclin914JeffreyALaw
authored andcommitted
RISC-V: Enable builtin __riscv_mul with Zmmul extension.
From d5b254e19d1f37fe27c7e98a0160e5c22446cfea Mon Sep 17 00:00:00 2001 From: Jim Lin <[email protected]> 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.
1 parent 0a19346 commit 2990f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/config/riscv/riscv-c.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ riscv_cpu_cpp_builtins (cpp_reader *pfile)
123123
if (TARGET_ATOMIC)
124124
builtin_define ("__riscv_atomic");
125125

126-
if (TARGET_MUL)
126+
if (TARGET_ZMMUL)
127127
builtin_define ("__riscv_mul");
128128
if (TARGET_DIV)
129129
builtin_define ("__riscv_div");

0 commit comments

Comments
 (0)