From: Peter Bergner Date: Sat, 31 Mar 2018 00:52:01 +0000 (-0500) Subject: re PR testsuite/80546 (FAIL: gcc.target/powerpc/bool3-p[78].c scan-assembler-not) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c32170880197cf6bc9a1a08b084b3624b1cd6474;p=gcc.git re PR testsuite/80546 (FAIL: gcc.target/powerpc/bool3-p[78].c scan-assembler-not) PR target/80546 * config/rs6000/vsx.md (??r): New mode attribute. (*vsx_mov_64bit): Use it. (*vsx_mov_32bit): Likewise. From-SVN: r258987 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b9f56ad1eab..c444e12be74 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-03-30 Peter Bergner + + PR target/80546 + * config/rs6000/vsx.md (??r): New mode attribute. + (*vsx_mov_64bit): Use it. + (*vsx_mov_32bit): Likewise. + 2018-03-30 Martin Sebor PR tree-optimization/84818 @@ -25,10 +32,10 @@ 2018-03-29 Martin Liska - PR lto/84995. - * doc/invoke.texi: Document how LTO works with debug info. - Describe auto-load support of binutils. Mention 'x86-64' - as valid option value of -march option. + PR lto/84995. + * doc/invoke.texi: Document how LTO works with debug info. + Describe auto-load support of binutils. Mention 'x86-64' + as valid option value of -march option. 2018-03-29 Jakub Jelinek diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md index a65ff756a1e..f7f73cadd67 100644 --- a/gcc/config/rs6000/vsx.md +++ b/gcc/config/rs6000/vsx.md @@ -170,6 +170,19 @@ (TF "wp") (KF "wq")]) +;; A mode attribute to disparage use of GPR registers, except for scalar +;; integer modes. +(define_mode_attr ??r [(V16QI "??r") + (V8HI "??r") + (V4SI "??r") + (V4SF "??r") + (V2DI "??r") + (V2DF "??r") + (V1TI "??r") + (KF "??r") + (TF "??r") + (TI "r")]) + ;; Same size integer type for floating point data (define_mode_attr VSi [(V4SF "v4si") (V2DF "v2di") @@ -1200,7 +1213,7 @@ (define_insn "*vsx_mov_64bit" [(set (match_operand:VSX_M 0 "nonimmediate_operand" "=ZwO, , , r, we, ?wQ, - ?&r, ??r, ??Y, ??r, wo, v, + ?&r, ??r, ??Y, , wo, v, ?, *r, v, ??r, wZ, v") (match_operand:VSX_M 1 "input_operand" @@ -1229,7 +1242,7 @@ ;; LVX (VMX) STVX (VMX) (define_insn "*vsx_mov_32bit" [(set (match_operand:VSX_M 0 "nonimmediate_operand" - "=ZwO, , , ??r, ??Y, ??r, + "=ZwO, , , ??r, ??Y, , wo, v, ?, *r, v, ??r, wZ, v")