Skip to content

Commit 6b8fd3e

Browse files
committed
Created live process test
1 parent 0230a3b commit 6b8fd3e

File tree

3 files changed

+82
-1
lines changed

3 files changed

+82
-1
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
int main() {
2+
asm volatile(
3+
"li x0, 0\n\t"
4+
"li x1, 1\n\t"
5+
"li x2, 2\n\t"
6+
"li x3, 3\n\t"
7+
"li x4, 4\n\t"
8+
"li x5, 5\n\t"
9+
"li x6, 6\n\t"
10+
"li x7, 7\n\t"
11+
"li x8, 8\n\t"
12+
"li x9, 9\n\t"
13+
"li x10, 10\n\t"
14+
"li x11, 11\n\t"
15+
"li x12, 12\n\t"
16+
"li x13, 13\n\t"
17+
"li x14, 14\n\t"
18+
"li x15, 15\n\t"
19+
"li x16, 16\n\t"
20+
"li x17, 17\n\t"
21+
"li x18, 18\n\t"
22+
"li x19, 19\n\t"
23+
"li x20, 20\n\t"
24+
"li x21, 21\n\t"
25+
"li x22, 22\n\t"
26+
"li x23, 23\n\t"
27+
"li x24, 24\n\t"
28+
"li x25, 25\n\t"
29+
"li x26, 26\n\t"
30+
"li x27, 27\n\t"
31+
"li x28, 28\n\t"
32+
"li x29, 29\n\t"
33+
"li x30, 30\n\t"
34+
"li x31, 31\n\t"
35+
);
36+
37+
return 0;
38+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# REQUIRES: native && target-riscv64
2+
# RUN: %clangxx_host -fomit-frame-pointer %p/Inputs/riscv64-gp-read.cpp -o %t
3+
# RUN: %lldb -b -s %s %t | FileCheck %s
4+
process launch
5+
6+
register read --all
7+
# CHECK-DAG: x0 = 0x0
8+
# CHECK-DAG: x1 = 0x1
9+
# CHECK-DAG: x2 = 0x2
10+
# CHECK-DAG: x3 = 0x3
11+
# CHECK-DAG: x4 = 0x4
12+
# CHECK-DAG: x5 = 0x5
13+
# CHECK-DAG: x6 = 0x6
14+
# CHECK-DAG: x7 = 0x7
15+
# CHECK-DAG: x8 = 0x8
16+
# CHECK-DAG: x9 = 0x9
17+
# CHECK-DAG: x10 = 0xa
18+
# CHECK-DAG: x11 = 0xb
19+
# CHECK-DAG: x12 = 0xc
20+
# CHECK-DAG: x13 = 0xd
21+
# CHECK-DAG: x14 = 0x8
22+
# CHECK-DAG: x15 = 0x8
23+
# CHECK-DAG: x16 = 0x8
24+
# CHECK-DAG: x17 = 0x8
25+
# CHECK-DAG: x18 = 0x8
26+
# CHECK-DAG: x19 = 0x8
27+
# CHECK-DAG: x20 = 0x8
28+
# CHECK-DAG: x21 = 0x8
29+
# CHECK-DAG: x22 = 0x8
30+
# CHECK-DAG: x23 = 0x8
31+
# CHECK-DAG: x24 = 0x8
32+
# CHECK-DAG: x25 = 0x8
33+
# CHECK-DAG: x26 = 0x8
34+
# CHECK-DAG: x27 = 0x8
35+
# CHECK-DAG: x28 = 0x8
36+
# CHECK-DAG: x29 = 0x8
37+
# CHECK-DAG: x30 = 0x8
38+
# CHECK-DAG: x31 = 0x8

llvm/utils/lit/lit/llvm/config.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def __init__(self, lit_config, config):
148148
features.add("long_tests")
149149

150150
if target_triple:
151+
print(target_triple)
151152
if re.match(r"^x86_64.*-apple", target_triple):
152153
features.add("x86_64-apple")
153154
host_cxx = getattr(config, "host_cxx", None)
@@ -169,8 +170,12 @@ def __init__(self, lit_config, config):
169170
features.add("target-aarch64")
170171
elif re.match(r"^arm.*", target_triple):
171172
features.add("target-arm")
172-
if re.match(r'^ppc64le.*-linux', target_triple):
173+
elif re.match(r'^ppc64le.*-linux', target_triple):
173174
features.add('target=powerpc64le-linux')
175+
elif re.match(r'^riscv64-.*-elf', target_triple):
176+
features.add('target-riscv64')
177+
elif re.match(r'^riscv32-.*-elf.', target_triple):
178+
features.add('target-riscv32')
174179

175180
if not user_is_root():
176181
features.add("non-root-user")

0 commit comments

Comments
 (0)