Skip to content

Commit 77ecbc0

Browse files
committed
add llvm-test-suite story 2
1 parent 6fc99d9 commit 77ecbc0

2 files changed

Lines changed: 520 additions & 2 deletions

File tree

_posts/Environment/2025-01-11-Compile-llvm-test-suit.md renamed to _posts/Environment/2025-01-11-Compile-llvm-test-suite-1.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Compile-llvm-test-suit
2+
title: Compile-llvm-test-suit-story-1
33
date: 2025-01-11
44
categories: [Environment]
55
tags: [linux] # TAG names should always be lowercase
@@ -11,8 +11,10 @@ published: false
1111
> Problem3: How to use musl to compile the benchmark? (in order to get a smaller library)
1212
1313
- Compiler: arm-linux-gnueabihf/arm-linux-gnueabi
14-
-
1514

15+
## Resources
16+
- [test-suite Guide, Configuration](https://llvm.org/docs/TestSuiteGuide.html)
17+
- [Github link](https://github.com/llvm/llvm-test-suite.git)
1618

1719
## Instructions to build a single benchmark
1820
```bash
@@ -32,6 +34,9 @@ cmake \
3234
../llvm-test-suite
3335

3436
```
37+
38+
## Benchmarks introduction
39+
3540
However, the gotten benchmarks in the directory include all the different benchmarks already, cannot get one subbenchmark out.
3641
```bash
3742
├── Bitcode
@@ -49,6 +54,27 @@ However, the gotten benchmarks in the directory include all the different benchm
4954
├── SingleSource
5055
└── tools
5156
```
57+
58+
- `SingleSource/`
59+
Contains test programs that are only a single source file in size. A subdirectory may contain several programs.
60+
61+
- `MultiSource/`
62+
Contains subdirectories which entire programs with multiple source files. Large benchmarks and whole applications go here.
63+
64+
- `MicroBenchmarks/`
65+
Programs using the google-benchmark library. The programs define functions that are run multiple times until the measurement results are statistically significant.
66+
67+
- `External/`
68+
Contains descriptions and test data for code that cannot be directly distributed with the test-suite. The most prominent members of this directory are the SPEC CPU benchmark suites. See External Suites.
69+
70+
- `Bitcode/`
71+
These tests are mostly written in LLVM bitcode.
72+
73+
- `CTMark/`
74+
Contains symbolic links to other benchmarks forming a representative sample for compilation performance measurements.
75+
76+
77+
5278
## qemu
5379

5480
```bash

0 commit comments

Comments
 (0)