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 PR50202, ICE: in final_scan_insn, at final.c:2709 (could not split insn) with __builtin_ia32_pcmpistri128


Hello!

Attached patch fixes corner case with -fno-dse, where the insn has all
outputs unused. Do not bother with the insn in this case and simply
delete it from splitter.

2011-08-27  Uros Bizjak  <ubizjak@gmail.com>

	PR target/50202
	* config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
	when all outputs are unused.
	(sse4_2_pcmpistr): Ditto.

testsuite/ChangeLog:

2011-08-27  Uros Bizjak  <ubizjak@gmail.com>

	PR target/50202
	* gcc.target/i386/pr50202.c: New test.

Bootstrapped and regression tested on x86_64-pc-linux-gnu  {,-m32}.
Committed to mainline SVN and to 4.6.

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]