27 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 the code is loaded in at the expected address.6 7# LLVM-EXEGESIS-SNIPPET-ADDRESS 200008# LLVM-EXEGESIS-DEFREG RAX 09# LLVM-EXEGESIS-DEFREG R14 12710# LLVM-EXEGESIS-DEFREG R15 011# LLVM-EXEGESIS-DEFREG RDI 012 13# Load the instruction pointer and round down to the nearest page as there14# will be some setup code loaded in before this part begins to execute.15lea 0(%rip), %rax16shrq $12, %rax17shlq $12, %rax18 19cmpq $0x20000, %rax20cmovneq %r14, %r1521 22movq $60, %rax23movq %r15, %rdi24syscall25 26# CHECK-NOT: error: 'Child benchmarking process exited with non-zero exit code: Child process returned with unknown exit code'27