mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 17:43:57 +00:00
Fix encoding of NOP used for padding in ARM mode .align.
llvm-svn: 144842
This commit is contained in:
parent
7b8547c4d0
commit
7ccdb7c0ae
@ -138,7 +138,7 @@ bool ARMAsmBackend::WriteNopData(uint64_t Count, MCObjectWriter *OW) const {
|
||||
const uint16_t Thumb1_16bitNopEncoding = 0x46c0; // using MOV r8,r8
|
||||
const uint16_t Thumb2_16bitNopEncoding = 0xbf00; // NOP
|
||||
const uint32_t ARMv4_NopEncoding = 0xe1a0000; // using MOV r0,r0
|
||||
const uint32_t ARMv6T2_NopEncoding = 0xe3207800; // NOP
|
||||
const uint32_t ARMv6T2_NopEncoding = 0xe320f000; // NOP
|
||||
if (isThumb()) {
|
||||
const uint16_t nopEncoding = hasNOP() ? Thumb2_16bitNopEncoding
|
||||
: Thumb1_16bitNopEncoding;
|
||||
|
Loading…
Reference in New Issue
Block a user