re PR middle-end/89765 (Multiple problems with vec-insert implementation on PowerPC)
authorKelvin Nilsen <kelvin@gcc.gnu.org>
Tue, 7 May 2019 21:40:46 +0000 (21:40 +0000)
committerKelvin Nilsen <kelvin@gcc.gnu.org>
Tue, 7 May 2019 21:40:46 +0000 (21:40 +0000)
commit5d30228e2b9837e66827acfe95c9a74c90c1d42b
treeec7ecf83d3fff95876808bcfa581e0bf0a84ce72
parente9d2e7b8962fa17582a67dfe408391e61f126446
re PR middle-end/89765 (Multiple problems with vec-insert implementation on PowerPC)

gcc/ChangeLog:

2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/89765
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
to compute vector element selector for both constant and variable
operands.

gcc/testsuite/ChangeLog:

2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/89765
* gcc.target/powerpc/pr89765-mc.c: New test.
* gcc.target/powerpc/vsx-builtin-10c.c: New test.
* gcc.target/powerpc/vsx-builtin-10d.c: New test.
* gcc.target/powerpc/vsx-builtin-11c.c: New test.
* gcc.target/powerpc/vsx-builtin-11d.c: New test.
* gcc.target/powerpc/vsx-builtin-12c.c: New test.
* gcc.target/powerpc/vsx-builtin-12d.c: New test.
* gcc.target/powerpc/vsx-builtin-13c.c: New test.
* gcc.target/powerpc/vsx-builtin-13d.c: New test.
* gcc.target/powerpc/vsx-builtin-14c.c: New test.
* gcc.target/powerpc/vsx-builtin-14d.c: New test.
* gcc.target/powerpc/vsx-builtin-15c.c: New test.
* gcc.target/powerpc/vsx-builtin-15d.c: New test.
* gcc.target/powerpc/vsx-builtin-16c.c: New test.
* gcc.target/powerpc/vsx-builtin-16d.c: New test.
* gcc.target/powerpc/vsx-builtin-17c.c: New test.
* gcc.target/powerpc/vsx-builtin-17d.c: New test.
* gcc.target/powerpc/vsx-builtin-18c.c: New test.
* gcc.target/powerpc/vsx-builtin-18d.c: New test.
* gcc.target/powerpc/vsx-builtin-19c.c: New test.
* gcc.target/powerpc/vsx-builtin-19d.c: New test.
* gcc.target/powerpc/vsx-builtin-20c.c: New test.
* gcc.target/powerpc/vsx-builtin-20d.c: New test.
* gcc.target/powerpc/vsx-builtin-9c.c: New test.
* gcc.target/powerpc/vsx-builtin-9d.c: New test.

From-SVN: r270982
28 files changed:
gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr89765-mc.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-10c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-10d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-11c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-11d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-12c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-12d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-13c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-13d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-14c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-14d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-15c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-15d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-16c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-16d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-17c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-17d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-18c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-18d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-19c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-19d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-20c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-20d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-9c.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsx-builtin-9d.c [new file with mode: 0644]