llvm-project/libunwind
Kito Cheng 9b488ace17 [libunwind][RISC-V] Rewrite testcase with C as possible.
Fix #60472

The testcase is writen in all inline asm but it seems not well
maintained for the CFI directive, of cause we can fix that, but this
patch also contain another issue is it use s0 and s1 without
store/restore.

This patch proposed another way to testing that, use inline asm to
generate dummy def and use, so compiler will generate store/restore for
the vector register, and then generate the CFI directives.

Also check __riscv_vector as the testcase guard, because the testcase
will read vlenb which is only available when V or zve* extensions is
present.

Reviewed By: MaskRay, asb, #libunwind

Differential Revision: https://reviews.llvm.org/D145225
2023-03-15 17:30:16 +08:00
..
cmake Revert "[CMake] Unify llvm_check_linker_flag and llvm_check_compiler_linker_flag" 2023-02-22 17:32:07 +00:00
docs Bump the trunk major version to 17 2023-01-24 22:57:27 -08:00
include [libunwind][RISCV] Support reading of VLENB CSR register 2022-12-06 11:48:54 +03:00
src Revert "[CMake] Bumps minimum version to 3.20.0." 2023-03-04 18:28:13 +01:00
test [libunwind][RISC-V] Rewrite testcase with C as possible. 2023-03-15 17:30:16 +08:00
.clang-format
CMakeLists.txt Revert "[CMake] Bumps minimum version to 3.20.0." 2023-03-04 18:28:13 +01:00
LICENSE.TXT