re PR target/79295 (gcc.target/powerpc/bcd-3.c fails starting with r244942)
authorAaron Sawdey <acsawdey@linux.vnet.ibm.com>
Fri, 10 Feb 2017 21:07:36 +0000 (21:07 +0000)
committerAaron Sawdey <acsawdey@gcc.gnu.org>
Fri, 10 Feb 2017 21:07:36 +0000 (15:07 -0600)
2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

PR target/79295
* config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.

Applying patch suggested by Meissner.

From-SVN: r245345

gcc/ChangeLog
gcc/config/rs6000/altivec.md

index be1ed7b04f8cba9ab9c5d91e5fc5d9d2d6e24348..09b4ad7a667bb6e2e22ede5156eb30ab2dbbb6ba 100644 (file)
@@ -1,3 +1,8 @@
+2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
+
+       PR target/79295
+       * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
+
 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
index 3a659b0b86c7e2bd9bf19f8d8faa1d872a5e6191..649f1810d1685a669c3ad3f710e9ee7080d5734a 100644 (file)
 (define_code_iterator BCD_TEST [eq lt gt unordered])
 
 (define_insn "bcd<bcd_add_sub>"
-  [(set (match_operand:V1TI 0 "register_operand" "")
-       (unspec:V1TI [(match_operand:V1TI 1 "register_operand" "")
-                     (match_operand:V1TI 2 "register_operand" "")
-                     (match_operand:QI 3 "const_0_to_1_operand" "")]
+  [(set (match_operand:V1TI 0 "gpc_reg_operand" "=v")
+       (unspec:V1TI [(match_operand:V1TI 1 "gpc_reg_operand" "v")
+                     (match_operand:V1TI 2 "gpc_reg_operand" "v")
+                     (match_operand:QI 3 "const_0_to_1_operand" "n")]
                     UNSPEC_BCD_ADD_SUB))
    (clobber (reg:CCFP CR6_REGNO))]
   "TARGET_P8_VECTOR"