xref: /llvm-project/llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations-livein.s (revision 3300bc34f7bccf29c14221fa4b651f7bc82c46d5)
1# REQUIRES: exegesis-can-measure-latency, x86_64-linux
2
3# Test that we can use the subprocess executor mode with memory annotations
4# while having live-ins still work as expected.
5
6# RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess | FileCheck %s
7
8# CHECK: measurements:
9# CHECK-NEXT: value: {{.*}}, per_snippet_value: {{.*}}
10
11# LLVM-EXEGESIS-MEM-DEF test1 4096 2147483647
12# LLVM-EXEGESIS-MEM-MAP test1 1048576
13# LLVM-EXEGESIS-LIVEIN R14
14
15movq $1048576, %rax
16movq %r14, (%rax)
17