rs6000.c (rs6000_gimple_fold_builtin): Shift-right and shift-left vector built-ins...
authorBill Schmidt <wschmidt@linux.ibm.com>
Mon, 11 Feb 2019 16:50:33 +0000 (16:50 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Mon, 11 Feb 2019 16:50:33 +0000 (16:50 +0000)
commit09e0c98bc4d9b5a9d0b03d9aee14c2f3fb8135c5
tree913679e02a025d06d9209c215dcd642fde878353
parentff7fa4886350037f892f9565f5a26c3ecd7ffc16
rs6000.c (rs6000_gimple_fold_builtin): Shift-right and shift-left vector built-ins need to include a TRUNC_MOD_EXPR...

[gcc]

2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>

* config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
for correct semantics.

[gcc/testsuite]

2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>

* gcc.target/powerpc/vec-sld-modulo.c: New.
* gcc.target/powerpc/vec-srad-modulo.c: New.
* gcc.target/powerpc/vec-srd-modulo.c: New.

From-SVN: r268771
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/vec-sld-modulo.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-srad-modulo.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vec-srd-modulo.c [new file with mode: 0644]