19 lines · plain
1# REQUIRES: exegesis-can-measure-latency, x86_64-linux2 3# RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess | FileCheck %s4 5# Check that we can set the value of RSP in subprocess mode without6# segfaulting as we need to restore it after the rest of the setup is7# complete to prevent loading from the stack where we set it instead8# of where the stack actuall is.9 10# LLVM-EXEGESIS-MEM-DEF test1 4096 214748364711# LLVM-EXEGESIS-MEM-MAP test1 104857612# LLVM-EXEGESIS-DEFREG RAX 10000013# LLVM-EXEGESIS-DEFREG R14 10000014# LLVM-EXEGESIS-DEFREG RSP 10000015 16movq %r14, (%rax)17 18# CHECK-NOT: error: 'The benchmarking subprocess sent unexpected signal: Segmentation fault'19