[all-commits] [llvm/llvm-project] 307e19: [test] Make fuzzer/value-profile-div.test x86 spec...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Jul 18 22:11:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 307e19784a7c20eaff43ac9ded06544932662c44
https://github.com/llvm/llvm-project/commit/307e19784a7c20eaff43ac9ded06544932662c44
Author: Fangrui Song <i at maskray.me>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
M compiler-rt/test/fuzzer/value-profile-div.test
Log Message:
-----------
[test] Make fuzzer/value-profile-div.test x86 specific
The test requires that an integer division by zero causes a trap, leading to a
signal like SIGFPE. This is the case on x86. On many other architectures, such
as Arm (unless software division is used and `__aeabi_idiv0` is patched),
Power, RISC-V, LoongArch, there is no trap. Therefore, it's more appropriate to
invert the condition to run the test.
Reviewed By: Ami-zhang
Differential Revision: https://reviews.llvm.org/D155644
More information about the All-commits
mailing list