[clang] [compiler-rt] [UBSan] Add check that detects division by zero for fixed-point types (PR #165181)
Victor Chernyakin via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 22:27:49 PDT 2026
================
@@ -0,0 +1,10 @@
+// RUN: %clangxx -DOP="0.0R / 0" -O3 -ffixed-point -fsanitize=fixed-point-divide-by-zero %s -o %t1 && %run %t1 2>&1 | FileCheck %s
----------------
localspook wrote:
`%env_ubsan_opts=halt_on_error=1` and `not %run` did the trick, now the tests pass consistently!
https://github.com/llvm/llvm-project/pull/165181
More information about the llvm-commits
mailing list