[llvm] [AArch64][ELF] Section alignment of 4 for AArch64 instruction (PR #114031)
Florin Popa via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 08:32:19 PDT 2024
================
@@ -0,0 +1,21 @@
+// RUN: llvm-mc -triple aarch64-windows -filetype obj -o %t.obj %s
+// RUN: llvm-objdump -d -r %t.obj | FileCheck %s
+
+.section sec00, "ax"
+nop
+nop
+nop
+.section sec01, "ax"
+.balign 4
+nop
+nop
+nop
+
+// CHECK: 0000000000000000 <sec00>:
+// CHECK-NEXT: 0: d503201f nop
+// CHECK-NEXT: 4: d503201f nop
+// CHECK-NEXT: 8: d503201f nop
+// CHECK: 0000000000000000 <sec01>:
+// CHECK-NEXT: 0: d503201f nop
----------------
popaflorin wrote:
I have redone the test and now I am checking for the section alignment with both `readobj` and 'readelf'
https://github.com/llvm/llvm-project/pull/114031
More information about the llvm-commits
mailing list