[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / tools / llvm-exegesis / X86 / latency / segment-registers-subprocess.asm
blob5d5219f9375f2fc3230e1829c0082b19459cf6a0
1 # REQUIRES: exegesis-can-measure-latency, x86_64-linux
3 # Check that the value of the segment registers is set properly when in
4 # subprocess mode.
6 # RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess | FileCheck %s
8 # LLVM-EXEGESIS-DEFREG FS 12345600
9 # LLVM-EXEGESIS-DEFREG GS 2468ac00
10 # LLVM-EXEGESIS-DEFREG R13 0
11 # LLVM-EXEGESIS-DEFREG R14 127
12 # LLVM-EXEGESIS-DEFREG R15 0
13 # LLVM-EXEGESIS-MEM-DEF MEM1 4096 0000000012345600
14 # LLVM-EXEGESIS-MEM-DEF MEM2 4096 000000002468ac00
15 # LLVM-EXEGESIS-MEM-MAP MEM1 305418240
16 # LLVM-EXEGESIS-MEM-MAP MEM2 610836480
18 movq %fs:0, %r13
19 cmpq $0x12345600, %r13
20 cmovneq %r14, %r15
21 movq %gs:0, %r13
22 cmpq $0x2468ac00, %r13
23 cmovneq %r14, %r15
25 movq $60, %rax
26 movq %r15, %rdi
27 syscall
29 # CHECK-NOT: error: 'Child benchmarking process exited with non-zero exit code: Child process returned with unknown exit code'