[simplify-rtx] PR 65235: Calculate element size correctly when simplifying (vec_selec...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 12 Mar 2015 13:40:50 +0000 (13:40 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 12 Mar 2015 13:40:50 +0000 (13:40 +0000)
commit644f6fd80a917eba98498079a9e6e2758198d6cb
treeba93d162074f6056498beb393eae670a323c4152
parent6899585abf17b4e39856cfad454b8cb21424838f
[simplify-rtx] PR 65235: Calculate element size correctly when simplifying (vec_select (vec_concat (const_int) (...)) [...])

PR rtl-optimization 65235
* simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
When first element of vec_concat is const_int, calculate its size
using second element.

PR rtl-optimization 65235
* gcc.target/aarch64/pr65235_1.c: New test.

From-SVN: r221387
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr65235_1.c [new file with mode: 0644]