xref: /llvm-project/lldb/test/Shell/Register/x86-multithread-write.test (revision 88591aa0ca7e4d99da353d49f91ea63e43fb55e0)
1caedbc31SMichał Górny# XFAIL: system-windows
2caedbc31SMichał Górny# REQUIRES: native && (target-x86 || target-x86_64)
3*b9bfe8a7SMichał Górny# UNSUPPORTED: system-debugserver
4caedbc31SMichał Górny# RUN: %clangxx_host %p/Inputs/x86-multithread-write.cpp -o %t -pthread
5caedbc31SMichał Górny# RUN: %lldb -b -s %s %t | FileCheck %s
6caedbc31SMichał Górny
7caedbc31SMichał Górnyprocess launch
8caedbc31SMichał Górny# CHECK: Process {{[0-9]+}} stopped
9caedbc31SMichał Górny
10caedbc31SMichał Górnyregister write eax 0x05060708
11caedbc31SMichał Górnyregister write ebx 0x15161718
12caedbc31SMichał Górny# TODO: the need to call 'read' is probably a bug in the Linux plugin
13caedbc31SMichał Górnyregister read st0
14caedbc31SMichał Górnyregister write st0 "{0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x00 0x40}"
15caedbc31SMichał Górny
16caedbc31SMichał Górnyprocess continue
17caedbc31SMichał Górny# CHECK-DAG: eax = 0x05060708
18caedbc31SMichał Górny# CHECK-DAG: ebx = 0x15161718
19caedbc31SMichał Górny# CHECK-DAG: st0 = { 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x00 0x40 }
20caedbc31SMichał Górny# CHECK: Process {{[0-9]+}} stopped
21caedbc31SMichał Górny
22caedbc31SMichał Górnyregister write eax 0x25262728
23caedbc31SMichał Górnyregister write ebx 0x35363738
24caedbc31SMichał Górnyregister read st0
25caedbc31SMichał Górnyregister write st0 "{0x11 0x21 0x31 0x41 0x51 0x61 0x71 0x81 0x00 0xc0}"
26caedbc31SMichał Górny
27caedbc31SMichał Górnyprocess continue
28caedbc31SMichał Górny# CHECK-DAG: eax = 0x25262728
29caedbc31SMichał Górny# CHECK-DAG: ebx = 0x35363738
30caedbc31SMichał Górny# CHECK-DAG: st0 = { 0x11 0x21 0x31 0x41 0x51 0x61 0x71 0x81 0x00 0xc0 }
31caedbc31SMichał Górny# CHECK: Process {{[0-9]+}} exited with status = 0
32