[compiler-rt] r261609 - [tests] Run test that uses gnu asm syntax on Posix only.

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 22 20:10:53 PST 2016


Author: samsonov
Date: Mon Feb 22 22:10:53 2016
New Revision: 261609

URL: http://llvm.org/viewvc/llvm-project?rev=261609&view=rev
Log:
[tests] Run test that uses gnu asm syntax on Posix only.

Added:
    compiler-rt/trunk/test/asan/TestCases/Posix/dump_instruction_bytes.cc
      - copied, changed from r261603, compiler-rt/trunk/test/asan/TestCases/dump_instruction_bytes.cc
Removed:
    compiler-rt/trunk/test/asan/TestCases/dump_instruction_bytes.cc

Copied: compiler-rt/trunk/test/asan/TestCases/Posix/dump_instruction_bytes.cc (from r261603, compiler-rt/trunk/test/asan/TestCases/dump_instruction_bytes.cc)
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/dump_instruction_bytes.cc?p2=compiler-rt/trunk/test/asan/TestCases/Posix/dump_instruction_bytes.cc&p1=compiler-rt/trunk/test/asan/TestCases/dump_instruction_bytes.cc&r1=261603&r2=261609&rev=261609&view=diff
==============================================================================
    (empty)

Removed: compiler-rt/trunk/test/asan/TestCases/dump_instruction_bytes.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/dump_instruction_bytes.cc?rev=261608&view=auto
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/dump_instruction_bytes.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/dump_instruction_bytes.cc (removed)
@@ -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;
-}




More information about the llvm-commits mailing list