[compiler-rt] [compiler-rt][nsan] Add support for nan detection (PR #101531)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 00:31:26 PDT 2024
================
@@ -0,0 +1,54 @@
+// RUN: %clangxx_nsan -O0 -g -DSOFTMAX=softmax %s -o %t
+// RUN: NSAN_OPTIONS=check_nan=true,halt_on_error=0,log2_max_relative_error=19 %run %t 2>&1 | FileCheck %s
+
+// RUN: %clangxx_nsan -O0 -g -DSOFTMAX=softmax %s -o %t
+// RUN: NSAN_OPTIONS=check_nan=true,halt_on_error=0,log2_max_relative_error=19 %run %t 2>&1 | FileCheck %s
----------------
cseslowpoke wrote:
I think I should change one of them to O3.
https://github.com/llvm/llvm-project/pull/101531
More information about the llvm-commits
mailing list