diff --git a/compiler-rt/test/fuzzer/value-profile-div.test b/compiler-rt/test/fuzzer/value-profile-div.test --- a/compiler-rt/test/fuzzer/value-profile-div.test +++ b/compiler-rt/test/fuzzer/value-profile-div.test @@ -1,6 +1,7 @@ UNSUPPORTED: ios UNSUPPORTED: target={{(arm|aarch64).*}} CHECK: AddressSanitizer: {{FPE|int-divide-by-zero}} -RUN: %cpp_compiler %S/DivTest.cpp -fsanitize-coverage=trace-div -o %t-DivTest +RUN: %cpp_compiler %S/DivTest.cpp %if target={{loongarch64.*}} %{ -mllvm -loongarch-check-zero-division%} \ +RUN: -fsanitize-coverage=trace-div -o %t-DivTest RUN: not %run %t-DivTest -seed=1 -use_value_profile=1 -runs=10000000 2>&1 | FileCheck %s