llvm-capstone/libunwind/test
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
..
configs [runtimes] Remove duplicate imports of libcxx.test.config 2023-02-14 17:28:22 -05:00
alignment.compile.pass.cpp
bad_unwind_info.pass.cpp [libunwind][SystemZ] Use process_vm_readv to avoid potential segfaults 2022-07-18 16:54:48 +02:00
CMakeLists.txt Revert "[CMake] Use LLVM_TARGET_TRIPLE in runtimes" 2022-12-05 22:20:51 +00:00
floatregister.pass.cpp [libunwind] Support cfi_undefined and cfi_register for float registers. 2021-09-27 12:04:02 +02:00
forceunwind.pass.cpp [libunwind] undef NDEBUG for assert.h in tests. 2022-08-04 19:55:40 -07:00
frameheadercache_test.pass.cpp [libunwind] Add missing licenses in test files 2022-04-03 08:55:57 -04:00
libunwind_01.pass.cpp [libunwind] Ensure test/libunwind_01.pass is not completely inlined 2022-06-20 09:05:49 +00:00
libunwind_02.pass.cpp [libunwind] undef NDEBUG for assert.h in tests. 2022-08-04 19:55:40 -07:00
lit.cfg.py
remember_state_leak.pass.sh.s [libunwind] Add missing licenses in test files 2022-04-03 08:55:57 -04:00
signal_frame.pass.cpp [libunwind] undef NDEBUG for assert.h in tests. 2022-08-04 19:55:40 -07:00
signal_unwind.pass.cpp [libunwind] undef NDEBUG for assert.h in tests. 2022-08-04 19:55:40 -07:00
unw_getcontext.pass.cpp [libunwind] undef NDEBUG for assert.h in tests. 2022-08-04 19:55:40 -07:00
unwind_leaffunction.pass.cpp [libunwind] Fixed a number of typos 2022-08-20 18:09:03 -07:00
unwind_scalable_vectors.pass.cpp [libunwind][RISC-V] Rewrite testcase with C as possible. 2023-03-15 17:30:16 +08:00