re PR target/79544 (vec_sra (unsigned long long,foo) generating vsrd instead of vsrad)
authorPat Haugen <pthaugen@us.ibm.com>
Mon, 27 Feb 2017 16:06:13 +0000 (16:06 +0000)
committerPat Haugen <pthaugen@gcc.gnu.org>
Mon, 27 Feb 2017 16:06:13 +0000 (16:06 +0000)
commitc8f28a3c7ae87e3114e5789fd3a20e46c3a879f6
tree6525f1e2b8504f02013c85ae627fa8f60c2af719
parent470c35ae22641f52ee03d2f4604f0391d60e5e22
re PR target/79544 (vec_sra (unsigned long long,foo) generating vsrd instead of vsrad)

PR target/79544
* config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
for arithmetic shift of unsigned V2DI.
* gcc.target/powerpc/pr79544.c: New.

From-SVN: r245762
gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr79544.c [new file with mode: 0644]