| 1 |
# REQUIRES: exegesis-can-measure-latency, x86_64-linux |
| 2 |
|
| 3 |
# RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess | FileCheck %s |
| 4 |
|
| 5 |
# Check that we can set the value of RSP in subprocess mode without |
| 6 |
# segfaulting as we need to restore it after the rest of the setup is |
| 7 |
# complete to prevent loading from the stack where we set it instead |
| 8 |
# of where the stack actuall is. |
| 9 |
|
| 10 |
# LLVM-EXEGESIS-MEM-DEF test1 4096 2147483647 |
| 11 |
# LLVM-EXEGESIS-MEM-MAP test1 1048576 |
| 12 |
# LLVM-EXEGESIS-DEFREG RAX 100000 |
| 13 |
# LLVM-EXEGESIS-DEFREG R14 100000 |
| 14 |
# LLVM-EXEGESIS-DEFREG RSP 100000 |
| 15 |
|
| 16 |
movq %r14, (%rax) |
| 17 |
|
| 18 |
# CHECK-NOT: error: 'The benchmarking subprocess sent unexpected signal: Segmentation fault' |