aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-07-18 22:11:27 -0700
committerFangrui Song <i@maskray.me>2023-07-18 22:11:27 -0700
commit307e19784a7c20eaff43ac9ded06544932662c44 (patch)
tree913cbd2b5eda13b7de105f2b7819f08ea9abbf67 /compiler-rt
parent1d133d9e88def5cbe28f594f15293bf946e5d069 (diff)
downloadllvm-307e19784a7c20eaff43ac9ded06544932662c44.zip
llvm-307e19784a7c20eaff43ac9ded06544932662c44.tar.gz
llvm-307e19784a7c20eaff43ac9ded06544932662c44.tar.bz2
[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
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/fuzzer/value-profile-div.test3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/test/fuzzer/value-profile-div.test b/compiler-rt/test/fuzzer/value-profile-div.test
index 40ff374..cf2e255 100644
--- a/compiler-rt/test/fuzzer/value-profile-div.test
+++ b/compiler-rt/test/fuzzer/value-profile-div.test
@@ -1,5 +1,4 @@
-UNSUPPORTED: ios
-UNSUPPORTED: target={{(arm|aarch64).*}}
+REQUIRES: target={{(i.86|x86_64)-.*}}
CHECK: AddressSanitizer: {{FPE|int-divide-by-zero}}
RUN: %cpp_compiler %S/DivTest.cpp -fsanitize-coverage=trace-div -o %t-DivTest
RUN: not %run %t-DivTest -seed=1 -use_value_profile=1 -runs=10000000 2>&1 | FileCheck %s