From: Aiden Grossman Date: Thu, 29 Jun 2023 18:16:41 +0000 (+0000) Subject: [llvm-exegesis] Change map address in memory annotation tests X-Git-Tag: upstream/17.0.6~3391 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46f42e2ee59ac5ff7b153648e30273e499f7b7e3;p=platform%2Fupstream%2Fllvm.git [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. --- 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 29c03e4..4c75573 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 8bd2c4b..a1744ee 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