diff options
author | Bill Schmidt <wschmidt@linux.ibm.com> | 2022-02-04 13:07:17 -0600 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.ibm.com> | 2022-02-09 11:10:47 -0600 |
commit | ed3fea09b18f67e757b5768b42cb6e816626f1db (patch) | |
tree | 91185970c24326d15f2a593be68fac2e2cab9695 /gcc/c/c-fold.cc | |
parent | 83d7e720cd1d075312e798c4ebd2e093f03465fb (diff) | |
download | gcc-ed3fea09b18f67e757b5768b42cb6e816626f1db.zip gcc-ed3fea09b18f67e757b5768b42cb6e816626f1db.tar.gz gcc-ed3fea09b18f67e757b5768b42cb6e816626f1db.tar.bz2 |
rs6000: Correct function prototypes for vec_replace_unaligned
Due to a pasto error in the documentation, vec_replace_unaligned was
implemented with the same function prototypes as vec_replace_elt. It was
intended that vec_replace_unaligned always specify output vectors as having
type vector unsigned char, to emphasize that elements are potentially
misaligned by this built-in function. This patch corrects the
misimplementation.
2022-02-04 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-builtins.def (VREPLACE_UN_UV2DI): Change
function prototype.
(VREPLACE_UN_UV4SI): Likewise.
(VREPLACE_UN_V2DF): Likewise.
(VREPLACE_UN_V2DI): Likewise.
(VREPLACE_UN_V4SF): Likewise.
(VREPLACE_UN_V4SI): Likewise.
* config/rs6000/rs6000-overload.def (VEC_REPLACE_UN): Change all
function prototypes.
* config/rs6000/vsx.md (vreplace_un_<mode>): Remove define_expand.
(vreplace_un_<mode>): New define_insn.
gcc/testsuite/
* gcc.target/powerpc/vec-replace-word-runnable.c: Handle expected
prototypes for each call to vec_replace_unaligned.
Diffstat (limited to 'gcc/c/c-fold.cc')
0 files changed, 0 insertions, 0 deletions