llvm-capstone/compiler-rt
Karl-Johan Karlsson bb0548a6ed [compiler-rt] Avoid signed overflow in floatdidf.c and floatdisf.c
When compiling compiler-rt with -fsanitize=undefined and running testcases you
end up with the following warning:

UBSan: floatdisf.c:27:15: signed integer overflow: 9223372036854775807 - -1 cannot be represented in type 'di_int' (aka 'long long')

This can be avoided by doing the subtraction in a matching unsigned variant of
the type, given that the overflow is the expected result of the subtraction.

The same kind of pattern exists in floatdidf.c

This was found in an out of tree target.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D146135
2023-03-17 08:14:57 +01:00
..
cmake [compiler-rt][builtins] Support builtins for armv8m.base 2023-03-14 17:20:54 -07:00
docs
include [memprof] Record BuildIDs in the raw profile. 2023-03-14 18:16:38 +00:00
lib [compiler-rt] Avoid signed overflow in floatdidf.c and floatdisf.c 2023-03-17 08:14:57 +01:00
test [HWASAN] Fix a memory leak in realloc-test.cpp 2023-03-16 05:43:53 +00:00
tools
unittests
utils
www [compiler-rt] Point UndefinedBehaviorSanitizer link to its own page. 2023-03-15 17:05:57 +01:00
.clang-tidy
.gitignore
CMakeLists.txt Revert "[CMake] Bumps minimum version to 3.20.0." 2023-03-04 18:28:13 +01:00
CODE_OWNERS.TXT [docs] Update compiler-rt/CODE_OWNERS.TXT 2023-02-24 15:07:09 -08:00
CREDITS.TXT
LICENSE.TXT
README.txt

Compiler-RT
================================

This directory and its subdirectories contain source code for the compiler
support routines.

Compiler-RT is open source software. You may freely distribute it under the
terms of the license agreement found in LICENSE.txt.

================================