re PR lto/83338 (SPEC CPU2017 510.parest_r ICE)
authorJakub Jelinek <jakub@redhat.com>
Sat, 9 Dec 2017 11:43:31 +0000 (12:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 9 Dec 2017 11:43:31 +0000 (12:43 +0100)
commit0eb952ea5eab6a299283635625cef497e831dae4
tree4a24789b1000c8bab737a5073f07109f84111303
parentb01fff4882f0c5d35a52e7001832e31c708fffd9
re PR lto/83338 (SPEC CPU2017 510.parest_r ICE)

PR tree-optimization/83338
* tree-vect-stmts.c (vectorizable_operation): Handle POINTER_DIFF_EXPR
vectorization as MINUS_EXPR with a subsequent VIEW_CONVERT_EXPR from
vector of unsigned integers to vector of signed integers.

* gcc.dg/vect/pr83338.c: New test.

From-SVN: r255523
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr83338.c [new file with mode: 0644]
gcc/tree-vect-stmts.c