[PATCH][AARCH64]Fix immediate alternative of movhf_aarch64 pattern.

Renlin Li renlin.li@foss.arm.com
Wed Mar 7 11:23:00 GMT 2018


Hi all,

For the immediate alternative, the constraint checks the operand with HF mode
while SImode is provided to the output template generation function.

Before the change, this inconsistency causes an ICE compiling the new test case in the patch.


aarch64-none-elf regression test Okay. Okay to commit the patch?

Regards,
Renlin

gcc/ChangeLog:

2018-03-07  Renlin Li  <renlin.li@arm.com>

	* config/aarch64/aarch64.md (movhf_aarch64): Fix mode argument to
	aarch64_output_scalar_simd_mov_immediate.

gcc/testsuite/ChangeLog:

2018-03-07  Renlin Li  <renlin.li@arm.com>

	* gcc.target/aarch64/movi_hf.c: New.
	* gcc.target/aarch64/f16_mov_immediate_1.c: Update.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new.patch
Type: text/x-patch
Size: 1806 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180307/1a1a134f/attachment.bin>


More information about the Gcc-patches mailing list