[all-commits] [llvm/llvm-project] 9b488a: [libunwind][RISC-V] Rewrite testcase with C as pos...
Kito Cheng via All-commits
all-commits at lists.llvm.org
Wed Mar 15 02:30:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9b488ace17e6be64e61bf20f8ddc3eb563848bde
https://github.com/llvm/llvm-project/commit/9b488ace17e6be64e61bf20f8ddc3eb563848bde
Author: Kito Cheng <kito.cheng at sifive.com>
Date: 2023-03-15 (Wed, 15 Mar 2023)
Changed paths:
M libunwind/test/unwind_scalable_vectors.pass.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list