blob: 18f39cd6af6258265ee1fa736956336563ce36c9 [file] [edit]
# REQUIRES: native && target-loongarch64
# RUN: %clangxx_host %p/Inputs/loongarch64-gp-read.cpp -o %t
# RUN: %lldb -b -s %s %t | FileCheck %s
process launch
## Read register using the register's alias.
register read zero ra tp sp a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 r21 fp s0 s1 s2 s3 s4 s5 s6 s7 s8
# CHECK-DAG: r0 = 0x0000000000000000
# CHECK-DAG: r1 = 0x0000000000000001
# CHECK-DAG: r2 = 0x0000000000000002
# CHECK-DAG: r3 = 0x0000000000000003
# CHECK-DAG: r4 = 0x0000000000000004
# CHECK-DAG: r5 = 0x0000000000000005
# CHECK-DAG: r6 = 0x0000000000000006
# CHECK-DAG: r7 = 0x0000000000000007
# CHECK-DAG: r8 = 0x0000000000000008
# CHECK-DAG: r9 = 0x0000000000000009
# CHECK-DAG: r10 = 0x000000000000000a
# CHECK-DAG: r11 = 0x000000000000000b
# CHECK-DAG: r12 = 0x000000000000000c
# CHECK-DAG: r13 = 0x000000000000000d
# CHECK-DAG: r14 = 0x000000000000000e
# CHECK-DAG: r15 = 0x000000000000000f
# CHECK-DAG: r16 = 0x0000000000000010
# CHECK-DAG: r17 = 0x0000000000000011
# CHECK-DAG: r18 = 0x0000000000000012
# CHECK-DAG: r19 = 0x0000000000000013
# CHECK-DAG: r20 = 0x0000000000000014
# CHECK-DAG: r21 = 0x0000000000000015
# CHECK-DAG: r22 = 0x0000000000000016
# CHECK-DAG: r23 = 0x0000000000000017
# CHECK-DAG: r24 = 0x0000000000000018
# CHECK-DAG: r25 = 0x0000000000000019
# CHECK-DAG: r26 = 0x000000000000001a
# CHECK-DAG: r27 = 0x000000000000001b
# CHECK-DAG: r28 = 0x000000000000001c
# CHECK-DAG: r29 = 0x000000000000001d
# CHECK-DAG: r30 = 0x000000000000001e
# CHECK-DAG: r31 = 0x000000000000001f