Skip to content

Commit

Permalink
clang/CodeGen/RISCV: test lowering of math builtins (#71399)
Browse files Browse the repository at this point in the history
Ever since 98c90a1 (ISel: introduce vector ISD::LRINT, ISD::LLRINT;
custom RISCV lowering) landed, there have been several discussions on
how the lrint and llrint libcalls would lower to LLVM IR via clang on
RV32 and RV64, in an effort to enable vectorization of lrint and llrint
via SLPVectorizer and LoopVectorize. This patch adds a new
math-builtins.c test to the RISC-V target to test the lowering of all
math libcalls, including lrint and llrint.
  • Loading branch information
artagnon committed Nov 23, 2023
1 parent 49f55d1 commit 083a539
Show file tree
Hide file tree
Showing 2 changed files with 459 additions and 0 deletions.

0 comments on commit 083a539

Please sign in to comment.