llvm-project
b021962c - [RISCV][Docs] Fix the return type in vector add call examples (#247025)

Commit
2 days ago
[RISCV][Docs] Fix the return type in vector add call examples (#247025) Both the masked and unmasked `llvm.riscv.vadd` examples omit the return type after `call`. When either example is placed in a function, `llvm-as` reports `expected type` at the intrinsic name. Add `<vscale x 4 x i32>` to both calls. With LLVM 24, both examples assemble and pass the IR verifier. On RV64, `llc` emits `vadd.vv` for both and uses `v0.t` for the masked form. The existing RV32 and RV64 `rvv/vadd.ll` tests passed, and the LLVM HTML documentation built with warnings treated as errors. Assisted-by: OpenAI Codex
Author
Parents
Loading