[llvm-exegesis] Change map address in memory annotation tests
authorAiden Grossman <agrossman154@yahoo.com>
Thu, 29 Jun 2023 18:16:41 +0000 (18:16 +0000)
committerAiden Grossman <agrossman154@yahoo.com>
Thu, 29 Jun 2023 18:21:06 +0000 (18:21 +0000)
Test failures have been reported by some LLVM developers in regards to
the low value of of the location where the memory is being mapped into
the virtual address space as it causes problems with some default
configurations of vm.mmap_min_addr. This patch sets it to 2^20 (1048576)
to alleviate this issues as most distros seem to use a default value of
65536.

llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations-livein.s
llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations.s

index 29c03e4..4c75573 100644 (file)
@@ -9,8 +9,8 @@
 # CHECK-NEXT: value: {{.*}}, per_snippet_value: {{.*}}
 
 # LLVM-EXEGESIS-MEM-DEF test1 4096 2147483647
-# LLVM-EXEGESIS-MEM-MAP test1 8192
+# LLVM-EXEGESIS-MEM-MAP test1 1048576
 # LLVM-EXEGESIS-LIVEIN R14
 
-movq $8192, %rax
+movq $1048576, %rax
 movq %r14, (%rax)
index 8bd2c4b..a1744ee 100644 (file)
@@ -11,7 +11,7 @@
 # CHECK-NEXT: value: {{.*}}, per_snippet_value: {{.*}}
 
 # LLVM-EXEGESIS-MEM-DEF test1 4096 2147483647
-# LLVM-EXEGESIS-MEM-MAP test1 8192
+# LLVM-EXEGESIS-MEM-MAP test1 1048576
 
-movq $8192, %rax
+movq $1048576, %rax
 movq (%rax), %rdi