[PATCH, AArch64] Fix GAS bug in checking an opcode against available features

Yufeng Zhang Yufeng.Zhang@arm.com
Wed Dec 18 12:30:00 GMT 2013


Hi,

This patch fixes a bug in the aarch64 gas.  Gas checks whether an opcode 
entry is allowed given the current available features on the target. 
Unfortunately the check is done too early in the opcode matching and 
causes the assembler to exit the mnemonics matching too early with 
incorrect diagnostics when certain features are not available on one 
target.  This patch fixes the problem by moving the checking to a later 
stage.

OK for the trunk and the 2.24 branch?

Thanks,
Yufeng


gas/

	* config/tc-aarch64.c (md_assemble): Defer the feature checking until
	do_encode () succeeds.

gas/testsuite/

	* gas/aarch64/rm-simd-ext.d: New file.
	* gas/aarch64/rm-simd-ext.l: Likewise.
	* gas/aarch64/rm-simd-ext.s: Likewise.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20131218/e46d7ccc/attachment.ksh>


More information about the Binutils mailing list