Skip to content
  • Tamar Christina's avatar
    Correct negs aliasing on AArch64. · 514cd3a0
    Tamar Christina authored
    This patch fixes a disassembly issue with the aliases to subs with a shifted
    register.  The subs instruction with the zero register as destination is
    supposed to alias to cmp and when the first input register is the zero register
    the subs is supposed to be aliased to negs.
    
    This means that a subs with destination and first input registers the zero
    register is supposed to be a cmp.
    
    This is done by raising the priority of the cmp alias.
    
    opcodes/
    
    	* aarch64-tbl.h (aarch64_opcode_table): Fix alias flag for negs
    	* aarch64-asm-2.c: Regenerate.
    	* aarch64-dis-2.c: Likewise.
    
    gas/
    
    	* testsuite/gas/aarch64/addsub.s: Add negs to zero reg test.
    	* testsuite/gas/aarch64/addsub.d: Likewise.
    514cd3a0
To find the state of this project's repository at the time of any of these versions, check out the tags.