llvm-project/compiler-rt/lib
Luís Marques 58f6b16c49 [compiler-rt][builtins][RISCV] Always include __mul[sd]i3 builtin definitions
The RISC-V implementations of the `__mulsi3`, `__muldi3` builtins were
conditionally compiling the actual function definitions depending on whether
the M extension was present or not. This caused Compiler-RT testing failures
for RISC-V targets with the M extension, as when these sources were included
the `librt_has_mul*i3` features were still being defined. These `librt_has_*`
definitions are used to conditionally run the respective tests. Since the
actual functions were not being compiled-in, the generic test for `__muldi3`
would fail. This patch makes these implementations follow the normal
Compiler-RT convention of always including the definition, and conditionally
running the respective tests by using the lit conditional
`REQUIRES: librt_has_*`.

Since the `mulsi3_test.c` wasn't actually RISC-V-specific, this patch also
moves it out of the `riscv` directory. It now only depends on
`librt_has_mulsi3` to run.

Differential Revision: https://reviews.llvm.org/D86457
2020-10-21 09:49:03 +01:00
..
BlocksRuntime
asan ASAN: Support detect_invalid_pointer_pairs=1 with detect_stack_use_after_return=1 2020-10-20 19:28:12 +02:00
builtins [compiler-rt][builtins][RISCV] Always include __mul[sd]i3 builtin definitions 2020-10-21 09:49:03 +01:00
cfi [sanitizers] Remove unneeded MaybeCall*DefaultOptions() and nullptr checks 2020-09-08 10:12:05 -07:00
crt [cmake] Strip quotes in compiler-rt/lib/crt; error if checks fail 2020-03-09 15:52:39 -07:00
dfsan Set Huge Page mode on shadow regions based on no_huge_pages_for_shadow 2020-10-20 16:50:59 +00:00
fuzzer [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
gwp_asan [GWP-ASan] Rework utilities (NFC) 2020-10-20 16:04:21 -07:00
hwasan [hwasan] Increase max allocation size to 1Tb. 2020-10-20 14:01:48 -07:00
interception [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
lsan [NFC][LSAN] Use InitializeCommonFlags in LSAN 2020-10-21 01:41:52 -07:00
memprof [MemProf] Memory profiling runtime support 2020-10-16 09:47:02 -07:00
msan [msan] Skip memcpy interceptor called by gethostname 2020-09-25 15:26:34 -07:00
profile [PGO] Remove the old memop value profiling buckets. 2020-10-15 10:09:49 -07:00
safestack compiler-rt: Rename .cc file in lib/{interception/tests,safestack} to .cpp 2019-08-01 13:56:52 +00:00
sanitizer_common [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
scudo [compiler-rt] Suppress -Wunused-result due to ::write when _FORTIFY_SOURCE>0 in glibc 2020-10-12 09:57:12 -07:00
stats compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
tsan [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
ubsan [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
ubsan_minimal [compiler-rt] Suppress -Wunused-result due to ::write when _FORTIFY_SOURCE>0 in glibc 2020-10-12 09:57:12 -07:00
xray [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
CMakeLists.txt [MemProf] Don't build memprof if sanitizer not being built 2020-10-16 10:47:37 -07:00