re PR tree-optimization/30186 (accessing an element via a "pointer" on a vector does...
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Mon, 31 Mar 2008 18:22:05 +0000 (18:22 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 31 Mar 2008 18:22:05 +0000 (11:22 -0700)
commita12bdb97c9bb28dc996017ec826612ac61dbe846
tree05015805c094c492567941926cc55180a8afe552
parent2d4bba805eeeea81ee9e566e569528de83876e08
re PR tree-optimization/30186 (accessing an element via a "pointer" on a vector does not cause vec_extract to be used (non-zero index))

2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/30186
        * fold-const.c (fold_indirect_ref_1): Support accessing non first
        element of the vector via a pointer.

2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/30186
        * gcc.dg/tree-ssa/vector-1.c: New testcase.
        * gcc.c-torture/execute/vector-1.c: New testcase.
        * gcc.c-torture/execute/vector-2.c: New testcase.

From-SVN: r133766
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/vector-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/vector-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/vector-1.c [new file with mode: 0644]