llvm-project/compiler-rt/test
Rainer Orth d83c9005cf [sanitizer_common][test] Enable tests on SPARC
Unfortunately, the `sanitizer_common` tests are disabled on many targets
that are supported by `sanitizer_common`, making it easy to miss issues
with that support.  This patch enables SPARC testing.

Beside the enabling proper, the patch fixes (together with D91607
<https://reviews.llvm.org/D91607>) the failures of the `symbolize_pc.cpp`,
`symbolize_pc_demangle.cpp`, and `symbolize_pc_inline.cpp` tests.  They
lack calls to `__builtin_extract_return_addr`.  When those are added, they
`PASS` when compiled with `gcc`.  `clang` incorrectly doesn't implement a
non-default `__builtin_extract_return_addr` on several targets, SPARC
included.

Because `__builtin_extract_return_addr(__builtin_return_addr(0))` is quite
a mouthful and I'm uncertain if the code needs to compile with msvc which
appparently has it's own `_ReturnAddress`, I've introduced
`__sanitizer_return_addr` to hide the difference and complexity.  Because
on 32-bit SPARC `__builtin_extract_return_addr` differs when the calling
function returns a struct, I've added a testcase for that.

There are a couple more tests failing on SPARC that I will deal with
separately.

Tested on `sparcv9-sun-solaris2.11`, `amd64-pc-solaris2.11`, and
`x86_64-pc-linux-gnu`.

Differential Revision: https://reviews.llvm.org/D91608
2022-02-01 22:33:56 +01:00
..
BlocksRuntime [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
asan [test][ASan][Win] Print more info when LoadLibrary fails 2022-01-26 10:33:23 -08:00
builtins [compiler-rt][builtins] Use explicitly-sized integer types for LibCalls 2022-01-30 21:10:54 +03:00
cfi [compiler-rt] -fsanitize=cfi is not supported on Darwin 2021-03-17 13:28:42 -07:00
crt Control-flow Enforcement Technology (CET), published by Intel, introduces 2022-01-10 11:01:11 +08:00
dfsan [DFSan] Add option for conditional callbacks. 2022-01-05 15:07:09 -08:00
fuzzer [compiler-rt][fuzzer] Disable 2 tests for Arm Thumb builds 2022-02-01 10:13:23 +00:00
gwp_asan [compiler-rt][GWP-ASAN] Disable 2 tests on Armv7 Linux 2021-07-19 10:45:11 +00:00
hwasan [hwasan][test] Remove obsoleted/removed -fno-experimental-new-pass-manager 2022-02-01 13:24:39 -08:00
interception
lsan [lsan] Deflake fork_and_leak test 2021-12-02 18:06:04 -08:00
memprof Revert "Revert D109159 "[amdgpu] Enable selection of `s_cselect_b64`."" 2022-01-05 13:10:25 -05:00
msan [msan] reflect the changed flag to the tests. 2022-01-16 20:48:05 +09:00
orc [llvm-jitlink] Update handling of library options. 2021-12-15 13:49:30 +11:00
profile [InstrProf] Add single byte coverage mode 2022-01-27 17:38:55 -08:00
safestack
sanitizer_common [sanitizer_common][test] Enable tests on SPARC 2022-02-01 22:33:56 +01:00
scudo Revert "[Scudo] Make -fsanitize=scudo use standalone. Migrate tests." 2021-05-26 10:50:26 -07:00
shadowcallstack
tsan [TSan] Mark test unsupported on Darwin 2022-01-23 22:01:48 -08:00
ubsan [UBSan] Relax test expectations in Misc/objc-cast.m test 2022-01-12 05:25:02 -08:00
ubsan_minimal [test] Fix unused FileCheck prefixes in compiler-rt 2021-02-01 22:32:13 -08:00
xray Fix xray fdr mode to allow multiple flushes 2021-02-10 12:57:24 +11:00
.clang-format [tests][sanitizers] Don't reflow comments 2021-08-03 12:54:00 -07:00
.clang-tidy [NFC][compiler-rt] Refine .clang-tidy checks 2020-09-05 15:42:15 -07:00
CMakeLists.txt [ORC-RT] Add target dependencies to ORC-RT regression tests. 2021-09-28 22:08:47 -07:00
lit.common.cfg.py [msan] Disabled test failing on new GLIBC 2021-11-15 11:18:52 -08:00
lit.common.configured.in [compiler-rt][test] Add shared_unwind requirement 2021-10-06 11:10:36 -07:00