[NFC][AArch64] Explicitly define undefined bits for instructions (#122129)
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / FreeBSD / dump_registers_i386.cpp
blob74aea4d8b360a3804d1b3e4fb1a3a2ee0e24a3c6
1 // Check that sanitizer prints registers dump_registers on dump_registers=1
2 // RUN: %clangxx %s -o %t
3 // RUN: %env_tool_opts=dump_registers=0 not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK-NODUMP --strict-whitespace
4 // RUN: not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK-DUMP --strict-whitespace
5 //
6 // REQUIRES: i386-target-arch
8 #include <signal.h>
10 int main() {
11 raise(SIGSEGV);
12 // CHECK-DUMP: Register values
13 // CHECK-DUMP-NEXT: eax = {{0x[0-9a-f]+}} ebx = {{0x[0-9a-f]+}} ecx = {{0x[0-9a-f]+}} edx = {{0x[0-9a-f]+}}
14 // CHECK-DUMP-NEXT: edi = {{0x[0-9a-f]+}} esi = {{0x[0-9a-f]+}} ebp = {{0x[0-9a-f]+}} esp = {{0x[0-9a-f]+}}
15 // CHECK-NODUMP-NOT: Register values
16 return 0;