summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/Posix
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2017-09-13 06:24:59 +0000
committerVitaly Buka <vitalybuka@google.com>2017-09-13 06:24:59 +0000
commita2354569bf5883206577a8299c38449391cce3e6 (patch)
tree026f0f7ab95e0db33ed5f266102e670ec99bc5bb /test/asan/TestCases/Posix
parent79b583e7f43a4d411a5b32f5da5eb3c50d1c735b (diff)
[compiler-rt] Move dump_instruction_bytes and dump_registers into sanitizer_common
Summary: Part of https://github.com/google/sanitizers/issues/637 Reviewers: eugenis, alekseyshl Subscribers: kubamracek, llvm-commits, dberris Differential Revision: https://reviews.llvm.org/D37766 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@313117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/Posix')
-rw-r--r--test/asan/TestCases/Posix/dump_instruction_bytes.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/asan/TestCases/Posix/dump_instruction_bytes.cc b/test/asan/TestCases/Posix/dump_instruction_bytes.cc
deleted file mode 100644
index b5b38ff08..000000000
--- a/test/asan/TestCases/Posix/dump_instruction_bytes.cc
+++ /dev/null
@@ -1,20 +0,0 @@
-// Check that ASan prints the faulting instruction bytes on
-// dump_instruction_bytes=1
-// RUN: %clangxx_asan %s -o %t
-// RUN: %env_asan_opts=dump_instruction_bytes=1 not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-DUMP
-// RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NODUMP
-//
-// REQUIRES: x86-target-arch
-
-int main() {
-#if defined(__x86_64__)
- asm("movq $0, %rax");
- asm("movl $0xcafebabe, 0x0(%rax)");
-#elif defined(i386)
- asm("movl $0, %eax");
- asm("movl $0xcafebabe, 0x0(%eax)");
-#endif
- // CHECK-DUMP: First 16 instruction bytes at pc: c7 00 be ba fe ca
- // CHECK-NODUMP-NOT: First 16 instruction bytes
- return 0;
-}