1# REQUIRES: exegesis-can-measure-latency, x86_64-linux 2 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. 6 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 9 10# CHECK: measurements: 11# CHECK-NEXT: value: {{.*}}, per_snippet_value: {{.*}} 12 13# LLVM-EXEGESIS-MEM-DEF test1 4096 2147483647 14# LLVM-EXEGESIS-MEM-MAP test1 1048576 15 16movq $1048576, %rax 17movq (%rax), %rdi 18