[PATCH] D48811: Fix disassembling ARM instructions as big-endian

Nicholas Allegra via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 1 15:26:34 PDT 2018


comex created this revision.
comex added a reviewer: t.p.northover.
Herald added a reviewer: javed.absar.
Herald added subscribers: llvm-commits, chrib, kristof.beyls.

ARMv6 and earlier include optional support for big-endian instruction
encoding (in three all encoding variants: ARM, Thumb, and Thumb-2).
LLVM already supports assembling ARM code as big-endian by specifying
'armbe' as the target architecture; however, the disassembler
currently ignores the endian choice and always disassembles as
little-endian.  This is a simple patch to fix that, plus a test.


Repository:
  rL LLVM

https://reviews.llvm.org/D48811

Files:
  lib/Target/ARM/Disassembler/ARMDisassembler.cpp
  test/MC/Disassembler/ARM/endian.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48811.153657.patch
Type: text/x-patch
Size: 5222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180701/5e5e3db0/attachment.bin>


More information about the llvm-commits mailing list