-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__riscv_vmulh_vv_i64m1
doesn't work with __attribute__((target("arch=+v")))
#109694
Comments
@llvm/issue-subscribers-backend-risc-v Author: dzaima (dzaima)
The code:
#include <riscv_vector.h>
__attribute__((target("arch=+v")))
vint64m1_t mulh_i64(vint64m1_t a, vint64m1_t b) {
return __riscv_vmulh_vv_i64m1(a, b, 2);
} does not compile with
even though |
…the builtins not in Zve64*. Fixes: llvm#109694
@llvm/issue-subscribers-clang-frontend Author: dzaima (dzaima)
The code:
#include <riscv_vector.h>
__attribute__((target("arch=+v")))
vint64m1_t mulh_i64(vint64m1_t a, vint64m1_t b) {
return __riscv_vmulh_vv_i64m1(a, b, 2);
} does not compile with
even though |
…the builtins not in Zve64*. (llvm#112827) Fixes: llvm#109694
…the builtins not in Zve64*. (llvm#112827) Fixes: llvm#109694
The code:
does not compile with
-march=rv64gc
, giving the error:even though
+v
is explicitly added.-march=rv64gcv
works, and so does an equivalent 32-bit operation. https://godbolt.org/z/qYYzeoxGarelated (but listing different problems)
The text was updated successfully, but these errors were encountered: