Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-exegesis / X86 / latency / memory-annotations.s
blob735deb40243c65a3199c4057402c22ee7921e2f2
1 # REQUIRES: exegesis-can-measure-latency, x86_64-linux
3 # Test the basic functionality of memory annotations, namely that we can
4 # specify a memory definition, map it into the process, and then use the
5 # specified memory.
7 # RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess | FileCheck %s
8 # RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess -repetition-mode=loop | FileCheck %s
10 # CHECK: measurements:
11 # CHECK-NEXT: value: {{.*}}, per_snippet_value: {{.*}}
13 # TODO: Sometimes transiently fails on PTRACE_ATTACH
14 # ALLOW_RETRIES: 2
16 # LLVM-EXEGESIS-MEM-DEF test1 4096 2147483647
17 # LLVM-EXEGESIS-MEM-MAP test1 1048576
19 movq $1048576, %rax
20 movq (%rax), %rdi