gcc/testsuite/ChangeLog:
commit9534dff5d1babc35677eba8c04e9f93d305ed88c
authorkelvin <kelvin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 May 2017 14:13:31 +0000 (11 14:13 +0000)
committerkelvin <kelvin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 May 2017 14:13:31 +0000 (11 14:13 +0000)
tree650ce85d5076fced2e6e671c2ff13a4c72a6ea00
parent73eaf82ab9cdddcca0116229c184e0335c585ea1
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247907 138bc75d-0d04-0410-961f-82ee72b054a4
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]