[PATCH] D147763: [ARM] Align code to 4-byte boundary after .arm directive

Antonio Abbatangelo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 23:38:29 PDT 2023


antangelo updated this revision to Diff 517812.
antangelo added a comment.

Rebased, updated release notes, updated .thumb to align to a 2-byte boundary, and added a test case

To my knowledge (testing with arm-none-eabi), the GNU assembler aligns code after the .arm directive to the next
4-byte boundary when switching from thumb to ARM mode. It does not seem to emit any alignment when switching
from ARM to thumb mode with .thumb.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147763/new/

https://reviews.llvm.org/D147763

Files:
  lld/test/ELF/arm-bl-v4t.s
  lld/test/ELF/arm-bl-v6-inrange.s
  lld/test/ELF/arm-fix-cortex-a8-nopatch.s
  lld/test/ELF/arm-fix-cortex-a8-recognize.s
  lld/test/ELF/arm-thunk-multipass.s
  llvm/docs/ReleaseNotes.rst
  llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  llvm/test/MC/ARM/arm-thumb-directive-alignment.s
  llvm/test/MC/ARM/directive-arch-mode-switch.s
  llvm/test/MC/ARM/misaligned-blx.s
  llvm/test/MC/ARM/thumb-function-address.s
  llvm/test/MC/ARM/thumb-types.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147763.517812.patch
Type: text/x-patch
Size: 10503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230428/9cc85fc3/attachment.bin>


More information about the llvm-commits mailing list