[llvm] 46f42e2 - [llvm-exegesis] Change map address in memory annotation tests
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 29 11:21:12 PDT 2023
Author: Aiden Grossman
Date: 2023-06-29T18:21:06Z
New Revision: 46f42e2ee59ac5ff7b153648e30273e499f7b7e3
URL: https://github.com/llvm/llvm-project/commit/46f42e2ee59ac5ff7b153648e30273e499f7b7e3
DIFF: https://github.com/llvm/llvm-project/commit/46f42e2ee59ac5ff7b153648e30273e499f7b7e3.diff
LOG: [llvm-exegesis] Change map address in memory annotation tests
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.
Added:
Modified:
llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations-livein.s
llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations.s
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations-livein.s b/llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations-livein.s
index 29c03e42f6a70e..4c75573f919fdd 100644
--- a/llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations-livein.s
+++ b/llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations-livein.s
@@ -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)
diff --git a/llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations.s b/llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations.s
index 8bd2c4b4690322..a1744eeeee5160 100644
--- a/llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations.s
+++ b/llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations.s
@@ -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
More information about the llvm-commits
mailing list