This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, i386]: Fix PR target/38931


Hello!

The problem was with the type of  *movsi_1 alternative 2 (and
*movdi_1_rex64 alternative 5) type. Gcc wants to analyze operand2,
which is nonexistent for "move-zero" instructions.

Attached patch changes type of these alternatives from mmxadd to mmx.

2009-01-22  Uros Bizjak  <ubizjak@gmail.com>

	PR target/38931
	* config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
	(*movdi_1_rex64): Use type "mmx" for alternative 5.

testsuite/ChangeLog:

2009-01-22  Uros Bizjak  <ubizjak@gmail.com>

	PR target/38931
	* gcc.target/i386/pr38931.c: New test.

Patch was bootstrapped and regression tested on i686-pc-linux-gnu,
committed to mainline.

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]