[clang] [compiler-rt] [Sanitizer] add signed-integer-wrap sanitizer (PR #80089)
Nick Desaulniers via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 31 13:47:04 PST 2024
================
@@ -0,0 +1,77 @@
+// Check that -fsanitize=signed-integer-wrap instruments with -fwrapv
+// RUN: %clang_cc1 -fwrapv -triple x86_64-apple-darwin -emit-llvm -o - %s -fsanitize=signed-integer-wrap | FileCheck %s --check-prefix=CHECK
----------------
nickdesaulniers wrote:
If there is nothing or not much in common, then two distinct `--check-prefix=` (singular) is the way to go. Avoid using `CHECK` as the single `--check-prefix` though, since that clashes with the implicit default. i.e. prefer:
```
RUN: ... --check-prefix=CHECK-FOO
RUN: ... --check-prefix=CHECK-BAR
```
to:
```
RUN: ... --check-prefix=CHECK
RUN: ... --check-prefix=CHECK-BAR
```
https://github.com/llvm/llvm-project/pull/80089
More information about the llvm-commits
mailing list