diff options
author | Carl Love <cel@us.ibm.com> | 2017-06-07 22:03:48 +0000 |
---|---|---|
committer | Carl Love <carll@gcc.gnu.org> | 2017-06-07 22:03:48 +0000 |
commit | 4a7f0dc0605c868a232b322862aa3b2e2c945ec9 (patch) | |
tree | 921e09fd30917c42b106d2a8418bf694016142fa /gcc | |
parent | 618f988cb292988a4380280bcc01cb4cbffe88d7 (diff) | |
download | gcc-4a7f0dc0605c868a232b322862aa3b2e2c945ec9.zip gcc-4a7f0dc0605c868a232b322862aa3b2e2c945ec9.tar.gz gcc-4a7f0dc0605c868a232b322862aa3b2e2c945ec9.tar.bz2 |
re PR target/80982 (gcc.target/powerpc/builtins-3-runnable.c fails starting with its introduction in r248846)
gcc/ChangeLog:
2017-06-07 Carl Love <cel@us.ibm.com>
PR target/80982
* config/rs6000/altivec.md (double<mode>2): Fix the implementation of
for BE.
From-SVN: r248997
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/altivec.md | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ffa0132..706441f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2017-06-07 Carl Love <cel@us.ibm.com> + PR target/80982 + * config/rs6000/altivec.md (double<mode>2): Fix the implementation of + for BE. + +2017-06-07 Carl Love <cel@us.ibm.com> + * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel support, Generate doublehv for signed int/float for BE case only. diff --git a/gcc/config/rs6000/altivec.md b/gcc/config/rs6000/altivec.md index 9e592bc..487b9a4 100644 --- a/gcc/config/rs6000/altivec.md +++ b/gcc/config/rs6000/altivec.md @@ -3002,9 +3002,9 @@ emit_insn (gen_vsx_xxsldwi_<mode> (rtx_tmp, operands[1], operands[1], rtx_val)); - rtx_val = GEN_INT (8); - emit_insn (gen_vsx_xxsldwi_<mode> (rtx_tmp, rtx_tmp, - operands[1],rtx_val)); + rtx_val = GEN_INT (2); + emit_insn (gen_vsx_xxsldwi_<mode> (rtx_tmp, operands[1], + rtx_tmp, rtx_val)); emit_insn (gen_vsx_xvcv<VS_sxwsp>dp (operands[0], rtx_tmp)); } else |