forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "[llvm-exegesis] Set stack pointer register after starting per…
…f counter (llvm#72489)" This reverts commit 52b4b35. This commit was causing build failures on bots without libpfm installed as the CHECK requires were not set correctly. The test added should only run on machines with libpfm enabled due to the limitations currently imposed by the subprocess execution mode.
- Loading branch information
1 parent
148dec9
commit 6688657
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
llvm/test/tools/llvm-exegesis/X86/latency/subprocess-rsp.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# REQUIRES: exegesis-can-measure-latency, x86_64-linux | ||
|
||
# RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess | FileCheck %s | ||
|
||
# Check that we can set the value of RSP in subprocess mode without | ||
# segfaulting as we need to restore it after the rest of the setup is | ||
# complete to prevent loading from the stack where we set it instead | ||
# of where the stack actuall is. | ||
|
||
# LLVM-EXEGESIS-MEM-DEF test1 4096 2147483647 | ||
# LLVM-EXEGESIS-MEM-MAP test1 1048576 | ||
# LLVM-EXEGESIS-DEFREG RAX 100000 | ||
# LLVM-EXEGESIS-DEFREG R14 100000 | ||
# LLVM-EXEGESIS-DEFREG RSP 100000 | ||
|
||
movq %r14, (%rax) | ||
|
||
# CHECK-NOT: error: 'The benchmarking subprocess sent unexpected signal: Segmentation fault' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters