[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / tools / llvm-exegesis / X86 / latency / subprocess-preserved-registers.s
blobe46da53a212c54e030ed22b37b52027488773034
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
25 cmpq $0x3, %rax
26 cmovneq %r14, %r15
27 cmpq $0x5, %rcx
28 cmovneq %r14, %r15
29 cmpq $0x7, %rdx
30 cmovneq %r14, %r15
31 cmpq $0xB, %rbx
32 cmovneq %r14, %r15
33 cmpq $0xD, %rsi
34 cmovneq %r14, %r15
35 cmpq $0x11, %rdi
36 cmovneq %r14, %r15
37 cmpq $0x13, %rsp
38 cmovneq %r14, %r15
39 cmpq $0x17, %rbp
40 cmovneq %r14, %r15
41 cmpq $0x1d, %r8
42 cmovneq %r14, %r15
43 cmpq $0x1f, %r9
44 cmovneq %r14, %r15
45 cmpq $0x29, %r10
46 cmovneq %r14, %r15
47 cmpq $0x2b, %r11
48 cmovneq %r14, %r15
49 cmpq $0x2f, %r12
50 cmovneq %r14, %r15
51 cmpq $0x35, %r13
52 cmovneq %r14, %r15
54 movq $60, %rax
55 movq %r15, %rdi
56 syscall
58 # CHECK-NOT: error: 'Child benchmarking process exited with non-zero exit code: Child process returned with unknown exit code'