mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-01 13:20:25 +00:00
[DFSan] Remove explicit -m64 from RUN lines.
Target-specific flags should usually be configured by CMake/lit. llvm-svn: 230997
This commit is contained in:
parent
1ce8745b77
commit
3e40703ab5
@ -1,5 +1,5 @@
|
||||
// RUN: %clang_dfsan -m64 %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -m64 %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t && %run %t
|
||||
|
||||
// Tests that labels are propagated through loads and stores.
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// RUN: %clang_dfsan -m64 %s -o %t && DFSAN_OPTIONS="strict_data_dependencies=0" %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -m64 %s -o %t && DFSAN_OPTIONS="strict_data_dependencies=0" %run %t
|
||||
// RUN: %clang_dfsan -DSTRICT_DATA_DEPENDENCIES -m64 %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -DSTRICT_DATA_DEPENDENCIES -mllvm -dfsan-args-abi -m64 %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan %s -o %t && DFSAN_OPTIONS="strict_data_dependencies=0" %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t && DFSAN_OPTIONS="strict_data_dependencies=0" %run %t
|
||||
// RUN: %clang_dfsan -DSTRICT_DATA_DEPENDENCIES %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -DSTRICT_DATA_DEPENDENCIES -mllvm -dfsan-args-abi %s -o %t && %run %t
|
||||
|
||||
// Tests custom implementations of various glibc functions.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// RUN: %clang_dfsan -m64 %s -o %t
|
||||
// RUN: %clang_dfsan %s -o %t
|
||||
// RUN: DFSAN_OPTIONS=dump_labels_at_exit=/dev/stdout %run %t 2>&1 | FileCheck %s
|
||||
// RUN: DFSAN_OPTIONS=dump_labels_at_exit=/dev/stdout not %run %t c 2>&1 | FileCheck %s --check-prefix=CHECK-OOL
|
||||
// RUN: DFSAN_OPTIONS=dump_labels_at_exit=/dev/stdout not %run %t u 2>&1 | FileCheck %s --check-prefix=CHECK-OOL
|
||||
|
@ -1,6 +1,6 @@
|
||||
// RUN: %clang_dfsan -m64 %s -fsanitize-blacklist=%S/Inputs/flags_abilist.txt -mllvm -dfsan-debug-nonzero-labels -o %t && %run %t 2>&1 | FileCheck %s
|
||||
// RUN: %clang_dfsan -m64 %s -fsanitize-blacklist=%S/Inputs/flags_abilist.txt -mllvm -dfsan-debug-nonzero-labels -o %t && DFSAN_OPTIONS=warn_unimplemented=0 %run %t 2>&1 | count 0
|
||||
// RUN: %clang_dfsan -m64 %s -fsanitize-blacklist=%S/Inputs/flags_abilist.txt -mllvm -dfsan-debug-nonzero-labels -o %t && DFSAN_OPTIONS=warn_nonzero_labels=1 %run %t 2>&1 | FileCheck --check-prefix=CHECK-NONZERO %s
|
||||
// RUN: %clang_dfsan %s -fsanitize-blacklist=%S/Inputs/flags_abilist.txt -mllvm -dfsan-debug-nonzero-labels -o %t && %run %t 2>&1 | FileCheck %s
|
||||
// RUN: %clang_dfsan %s -fsanitize-blacklist=%S/Inputs/flags_abilist.txt -mllvm -dfsan-debug-nonzero-labels -o %t && DFSAN_OPTIONS=warn_unimplemented=0 %run %t 2>&1 | count 0
|
||||
// RUN: %clang_dfsan %s -fsanitize-blacklist=%S/Inputs/flags_abilist.txt -mllvm -dfsan-debug-nonzero-labels -o %t && DFSAN_OPTIONS=warn_nonzero_labels=1 %run %t 2>&1 | FileCheck --check-prefix=CHECK-NONZERO %s
|
||||
|
||||
// Tests that flags work correctly.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// RUN: %clang_dfsan -m64 %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -m64 %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t && %run %t
|
||||
|
||||
// Tests that labels are propagated through function calls.
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
// RUN: %clang_dfsan -DLIB -m64 -c %s -o %t.lib.o && \
|
||||
// RUN: %clang_dfsan -m64 -c %s -o %t.o && \
|
||||
// RUN: %clang_dfsan -m64 %t.lib.o %t.o -o %t.bin && \
|
||||
// RUN: %clang_dfsan -DLIB -c %s -o %t.lib.o && \
|
||||
// RUN: %clang_dfsan -c %s -o %t.o && \
|
||||
// RUN: %clang_dfsan %t.lib.o %t.o -o %t.bin && \
|
||||
// RUN: %run %t.bin
|
||||
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -m64 -DLIB -c %s -o %t.lib.o && \
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -m64 -c %s -o %t.o && \
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -m64 %t.o %t.lib.o -o %t.bin && \
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -DLIB -c %s -o %t.lib.o && \
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -c %s -o %t.o && \
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %t.o %t.lib.o -o %t.bin && \
|
||||
// RUN: %run %t.bin
|
||||
|
||||
#include <sanitizer/dfsan_interface.h>
|
||||
|
@ -9,7 +9,7 @@ config.name = 'DataFlowSanitizer'
|
||||
config.test_source_root = os.path.dirname(__file__)
|
||||
|
||||
# Setup default compiler flags used with -fsanitize=dataflow option.
|
||||
clang_dfsan_cflags = ["-fsanitize=dataflow"]
|
||||
clang_dfsan_cflags = ["-fsanitize=dataflow", "-m64"]
|
||||
clang_dfsan_cxxflags = config.cxx_mode_flags + clang_dfsan_cflags
|
||||
|
||||
def build_invocation(compile_flags):
|
||||
|
@ -1,5 +1,5 @@
|
||||
// RUN: %clang_dfsan -m64 %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -m64 %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t && %run %t
|
||||
|
||||
// Tests that labels are propagated through computation and that union labels
|
||||
// are properly created.
|
||||
|
@ -1,7 +1,7 @@
|
||||
// RUN: %clang_dfsan -m64 %s -o %t
|
||||
// RUN: %clang_dfsan %s -o %t
|
||||
// RUN: not %run %t 2>&1 | FileCheck %s
|
||||
// RUN: %run %t foo
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -m64 %s -o %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t
|
||||
// RUN: not %run %t 2>&1 | FileCheck %s
|
||||
// RUN: %run %t foo
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// RUN: %clang_dfsan -m64 %s -o %t && %run %t | FileCheck %s
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -m64 %s -o %t && %run %t | FileCheck %s
|
||||
// RUN: %clang_dfsan %s -o %t && %run %t | FileCheck %s
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t && %run %t | FileCheck %s
|
||||
|
||||
// Tests that the custom implementation of write() does writes with or without
|
||||
// a callback set using dfsan_set_write_callback().
|
||||
|
Loading…
Reference in New Issue
Block a user