[Patch, AArch64] Fix the check of the system register parsing result

Yufeng Zhang Yufeng.Zhang@arm.com
Tue Jan 8 17:58:00 GMT 2013
Hi,

This simple patch fixes in the AArch64 GAS the check of the system 
register parsing result.  With this fix, GAS can correctly issue 
diagnostics on unrecognized system registers in instructions like MSR, 
MRS, etc.

OK to commit?

Thanks,
Yufeng


gas/

2013-01-08  Yufeng Zhang  <yufeng.zhang@arm.com>

          * config/tc-aarch64.c (parse_operands): Change to compare the 
result
          of function call 'parse_sys_reg' with 'PARSE_FAIL' instead of 
'FALSE'.

gas/testsuite/

2013-01-08  Yufeng Zhang  <yufeng.zhang@arm.com>

          * gas/aarch64/diagnostic.s: Add test.
          * gas/aarch64/diagnostic.l: Update.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-sysreg-parsing-error-check.patch
Type: text/x-patch
Size: 1839 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20130108/910a604f/attachment.bin>


More information about the Binutils mailing list