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 the value of the registers preserved in subprocess mode while
6 # making the ioctl system call are actually preserved correctly.
8 # LLVM-EXEGESIS-DEFREG RAX 3
9 # LLVM-EXEGESIS-DEFREG RCX 5
10 # LLVM-EXEGESIS-DEFREG RDX 7
11 # LLVM-EXEGESIS-DEFREG RBX B
12 # LLVM-EXEGESIS-DEFREG RSI D
13 # LLVM-EXEGESIS-DEFREG RDI 11
14 # LLVM-EXEGESIS-DEFREG RSP 13
15 # LLVM-EXEGESIS-DEFREG RBP 17
16 # LLVM-EXEGESIS-DEFREG R8 1D
17 # LLVM-EXEGESIS-DEFREG R9 1F
18 # LLVM-EXEGESIS-DEFREG R10 29
19 # LLVM-EXEGESIS-DEFREG R11 2B
20 # LLVM-EXEGESIS-DEFREG R12 2F
21 # LLVM-EXEGESIS-DEFREG R13 35
22 # LLVM-EXEGESIS-DEFREG R14 127
23 # LLVM-EXEGESIS-DEFREG R15 0
58 # CHECK-NOT: error: 'Child benchmarking process exited with non-zero exit code: Child process returned with unknown exit code'