xref: /llvm-project/lldb/test/Shell/Register/x86-64-gp-write.test (revision 9c739252261ea762d1bbbd8234d93c9038711fcd)
1# UNSUPPORTED: system-darwin
2# REQUIRES: native && target-x86_64
3# RUN: %clangxx_host -fomit-frame-pointer %p/Inputs/x86-64-gp-write.cpp -o %t
4# RUN: %lldb -b -s %s %t | FileCheck %s
5process launch
6
7register write rax 0x0102030405060708
8register write rbx 0x1112131415161718
9register write rcx 0x2122232425262728
10register write rdx 0x3132333435363738
11register write rsp 0x4142434445464748
12register write rbp 0x5152535455565758
13register write rsi 0x6162636465666768
14register write rdi 0x7172737475767778
15
16process continue
17# CHECK-DAG: rax = 0x0102030405060708
18# CHECK-DAG: rbx = 0x1112131415161718
19# CHECK-DAG: rcx = 0x2122232425262728
20# CHECK-DAG: rdx = 0x3132333435363738
21# CHECK-DAG: rsp = 0x4142434445464748
22# CHECK-DAG: rbp = 0x5152535455565758
23# CHECK-DAG: rsi = 0x6162636465666768
24# CHECK-DAG: rdi = 0x7172737475767778
25
26# CHECK: Process {{[0-9]+}} exited with status = 0
27