We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c481fed commit ab750eaCopy full SHA for ab750ea
cmake/compiler/gcc/target_riscv.cmake
@@ -81,7 +81,9 @@ if(CONFIG_RISCV_ISA_EXT_ZBS)
81
string(CONCAT riscv_march ${riscv_march} "_zbs")
82
endif()
83
84
-if(CONFIG_RISCV_ISA_EXT_ZMMUL AND
+# Check whether we already imply Zmmul by selecting the M extension; if not - enable it
85
+if(NOT CONFIG_RISCV_ISA_EXT_M AND
86
+ CONFIG_RISCV_ISA_EXT_ZMMUL AND
87
"${GCC_COMPILER_VERSION}" VERSION_GREATER_EQUAL 13.0.0)
88
string(CONCAT riscv_march ${riscv_march} "_zmmul")
89
0 commit comments