[Patch, AArch64] fix the encoding of MOV immediate instructions in NDEBUG build

Yufeng Zhang Yufeng.Zhang@arm.com
Mon Sep 17 12:17:00 GMT 2012


Hi,

This patch fixes an inappropriate assertion in AArch64 opcodes which 
causes malfunction of gas in assembling MOV immediate instructions if 
the tools are built with -DNDEBUG.

The patch passes the regression test.

OK to commit?

Thanks,
Yufeng


opcodes/

2012-09-17  Yufeng Zhang  <yufeng.zhang@arm.com>

          * aarch64-asm.c (aarch64_ins_imm_half): Remove 
ATTRIBUTE_UNUSED from
          the parameter 'inst'.
          (aarch64_ins_addr_simm): Add ATTRIBUTE_UNUSED to the parameter 
'inst'.
          (convert_mov_to_movewide): Change to assert (0) when
          aarch64_wide_constant_p returns FALSE.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wide-constant.patch
Type: text/x-patch
Size: 1509 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20120917/406e07d7/attachment.bin>


More information about the Binutils mailing list