[clang] [RISCV][Clang] Added builtin support for experimental Zimop extension (PR #79971)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 30 23:35:50 PST 2024


================
@@ -89,5 +89,13 @@ TARGET_BUILTIN(__builtin_riscv_sm3p1, "UiUi", "nc", "zksh")
 TARGET_BUILTIN(__builtin_riscv_ntl_load, "v.", "t", "zihintntl")
 TARGET_BUILTIN(__builtin_riscv_ntl_store, "v.", "t", "zihintntl")
 
+// Zimop extension
+TARGET_BUILTIN(__builtin_riscv_mopr_32, "UiUiUi", "nc", "experimental-zimop")
----------------
topperc wrote:

The last argument should include 'I' to indicate it needs to be a compile time constant. See `__builtin_riscv_sm4ed` for example.

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


More information about the cfe-commits mailing list