r254366 - in /trunk/gcc: ChangeLog config/i386/...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Fri Nov 3 09:25:00 GMT 2017


Author: rsandifo
Date: Fri Nov  3 09:24:28 2017
New Revision: 254366

URL: https://gcc.gnu.org/viewcvs?rev=254366&root=gcc&view=rev
Log:
PR82809: register handling in ix86_vector_duplicate_value

When adding the call to gen_vec_duplicate, I failed to notice that
code further down modified the VEC_DUPLICATE in place.  That isn't
safe if gen_vec_duplicate returned a const_vector.

2017-11-02  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
	PR target/82809
	* config/i386/i386.c (ix86_vector_duplicate_value): Use
	gen_vec_duplicate after forcing the scalar into a register.

gcc/testsuite/
	* gcc.dg/pr82809.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr82809.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list