cmpb-1.c: New test.
authorKelvin Nilsen <kelvin@gcc.gnu.org>
Thu, 11 May 2017 14:13:31 +0000 (14:13 +0000)
committerKelvin Nilsen <kelvin@gcc.gnu.org>
Thu, 11 May 2017 14:13:31 +0000 (14:13 +0000)
commit4fd18c782de4833736d9b3604a3b031f74429f5c
tree650ce85d5076fced2e6e671c2ff13a4c72a6ea00
parent43b883a99006138770d42067d385347fbae21334
cmpb-1.c: New test.

gcc/testsuite/ChangeLog:

2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* gcc.target/powerpc/cmpb-1.c: New test.
* gcc.target/powerpc/cmpb-2.c: New test.
* gcc.target/powerpc/cmpb-3.c: New test.
* gcc.target/powerpc/cmpb32-1.c: New test.
* gcc.target/powerpc/cmpb32-2.c: New test.

gcc/ChangeLog:

2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
array entries to represent two legal parameterizations of the
overloaded __builtin_cmpb function, as represented by the
P6_OV_BUILTIN_CMPB constant.
(altivec_resolve_overloaded_builtin): Add special case handling
for the __builtin_cmpb function, as represented by the
P6_OV_BUILTIN_CMPB constant.
* config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
(BU_P6_64BIT_2): New macro.
(BU_P6_OVERLOAD_2): New macro
(CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
(CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
(CMPB): Add overload support to represent both 32-bit and 64-bit
compare-bytes function.
* config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
support for TARGET_CMPB.
* config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
* doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
documentation of the __builtin_cmpb overloaded built-in function.

From-SVN: r247907
12 files changed:
gcc/ChangeLog
gcc/config/rs6000/rs6000-builtin.def
gcc/config/rs6000/rs6000-c.c
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.h
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/cmpb-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/cmpb-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/cmpb-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/cmpb32-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/cmpb32-2.c [new file with mode: 0644]