From 4a7f0dc0605c868a232b322862aa3b2e2c945ec9 Mon Sep 17 00:00:00 2001 From: Carl Love Date: Wed, 7 Jun 2017 22:03:48 +0000 Subject: [PATCH] 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 PR target/80982 * config/rs6000/altivec.md (double2): Fix the implementation of for BE. From-SVN: r248997 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/altivec.md | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ffa013214dc..706441fa058 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-06-07 Carl Love + + PR target/80982 + * config/rs6000/altivec.md (double2): Fix the implementation of + for BE. + 2017-06-07 Carl Love * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel diff --git a/gcc/config/rs6000/altivec.md b/gcc/config/rs6000/altivec.md index 9e592bce393..487b9a4d21d 100644 --- a/gcc/config/rs6000/altivec.md +++ b/gcc/config/rs6000/altivec.md @@ -3002,9 +3002,9 @@ emit_insn (gen_vsx_xxsldwi_ (rtx_tmp, operands[1], operands[1], rtx_val)); - rtx_val = GEN_INT (8); - emit_insn (gen_vsx_xxsldwi_ (rtx_tmp, rtx_tmp, - operands[1],rtx_val)); + rtx_val = GEN_INT (2); + emit_insn (gen_vsx_xxsldwi_ (rtx_tmp, operands[1], + rtx_tmp, rtx_val)); emit_insn (gen_vsx_xvcvdp (operands[0], rtx_tmp)); } else -- 2.30.2