rs6000-c.c (altivec-resolve_overloaded_builtin): Change handling of ALTIVEC_BUILTIN_V...
authorKelvin Nilsen <kelvin@gcc.gnu.org>
Wed, 30 Jan 2019 15:01:40 +0000 (15:01 +0000)
committerKelvin Nilsen <kelvin@gcc.gnu.org>
Wed, 30 Jan 2019 15:01:40 +0000 (15:01 +0000)
commit83a67c0cd7fd11f6ca6a88d2e7db594ef7449454
tree28890fbd53dd762c8eb9a05c9f391c8fc9e1ae6b
parentc7e503a5922d1926cd9e03e7919fc5180dcefb56
rs6000-c.c (altivec-resolve_overloaded_builtin): Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.

gcc/ChangeLog:

2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
type of vector element when vec_extract is implemented by direct
move.

gcc/testsuite/ChangeLog:

2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* gcc.target/powerpc/vec-extract-schar-1.c: New test.
* gcc.target/powerpc/vec-extract-sint-1.c: New test.
* gcc.target/powerpc/vec-extract-sint128-1.c: New test.
* gcc.target/powerpc/vec-extract-slong-1.c: New test.
* gcc.target/powerpc/vec-extract-sshort-1.c: New test.
* gcc.target/powerpc/vec-extract-uchar-1.c: New test.
* gcc.target/powerpc/vec-extract-uint-1.c: New test.
* gcc.target/powerpc/vec-extract-uint128-1.c: New test.
* gcc.target/powerpc/vec-extract-ulong-1.c: New test.
* gcc.target/powerpc/vec-extract-ushort-1.c: New test.

From-SVN: r268391
13 files changed:
gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/vec-extract-schar-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-extract-sint-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-extract-sint128-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-extract-slong-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-extract-sshort-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-extract-uchar-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-extract-uint-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-extract-uint128-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-extract-ulong-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-extract-ushort-1.c [new file with mode: 0644]