30 lines · plain
1# REQUIRES: exegesis-can-measure-latency, x86_64-linux2 3# Check that the value of the segment registers is set properly when in4# subprocess mode.5 6# RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess | FileCheck %s7 8# LLVM-EXEGESIS-DEFREG FS 123456009# LLVM-EXEGESIS-DEFREG GS 2468ac0010# LLVM-EXEGESIS-DEFREG R13 011# LLVM-EXEGESIS-DEFREG R14 12712# LLVM-EXEGESIS-DEFREG R15 013# LLVM-EXEGESIS-MEM-DEF MEM1 4096 000000001234560014# LLVM-EXEGESIS-MEM-DEF MEM2 4096 000000002468ac0015# LLVM-EXEGESIS-MEM-MAP MEM1 30541824016# LLVM-EXEGESIS-MEM-MAP MEM2 61083648017 18movq %fs:0, %r1319cmpq $0x12345600, %r1320cmovneq %r14, %r1521movq %gs:0, %r1322cmpq $0x2468ac00, %r1323cmovneq %r14, %r1524 25movq $60, %rax26movq %r15, %rdi27syscall28 29# CHECK-NOT: error: 'Child benchmarking process exited with non-zero exit code: Child process returned with unknown exit code'30