[PATCH] D128227: [BOLT][TEST] Fix stack alignment in section-reloc-with-addend.s
Maksim Panchenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 20 14:49:10 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG30a6d3ada657: [BOLT][TEST] Fix stack alignment in section-reloc-with-addend.s (authored by maksfb).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128227/new/
https://reviews.llvm.org/D128227
Files:
bolt/test/runtime/X86/section-reloc-with-addend.s
Index: bolt/test/runtime/X86/section-reloc-with-addend.s
===================================================================
--- bolt/test/runtime/X86/section-reloc-with-addend.s
+++ bolt/test/runtime/X86/section-reloc-with-addend.s
@@ -13,9 +13,10 @@
# RUN: llvm-strip --strip-unneeded %t.o
# RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
-# RUN: llvm-bolt %t.exe --relocs=1 --print-finalized --print-only=main -o %t.out
+# RUN: llvm-bolt %t.exe --print-finalized --print-only=main -o %t.out \
+# RUN: 2>&1 | FileCheck %s
-# RUN: %t.out 1 2
+# RUN: %t.out 1 2 | FileCheck --check-prefix=CHECK-RT %s
.text
.globl main
@@ -24,11 +25,14 @@
main:
pushq %rbp
movq %rsp, %rbp
- subq $0x18, %rsp
+ subq $0x10, %rsp
cmpl $0x2, %edi
jb .BBend
.BB2:
- leaq .data-0x1000000, %rsi # Use a large negative addend to cause a
+
+# CHECK: leaq
+# CHECK-SAME: {{.*}}-{{.*}}
+ leaq mystring-0x1000000, %rsi # Use a large negative addend to cause a
# negative result to be encoded in LEA
addq $0x1000000, %rsi # Eventually program logic compensates to get
# a real address
@@ -47,4 +51,6 @@
.size main, .-main
.data
+
+# CHECK-RT: {{.*}} is rbx mod 10 contents in decimal
mystring: .asciz "0 is rbx mod 10 contents in decimal\n"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128227.438482.patch
Type: text/x-patch
Size: 1350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220620/caf524ae/attachment.bin>
More information about the llvm-commits
mailing list