[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / tools / llvm-exegesis / X86 / latency / subprocess-rsp.s
blobcc23cdee3296103117c67a3328432bdbfcb56292
1 # REQUIRES: exegesis-can-measure-latency, x86_64-linux
3 # RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess | FileCheck %s
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.
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
16 movq %r14, (%rax)
18 # CHECK-NOT: error: 'The benchmarking subprocess sent unexpected signal: Segmentation fault'