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 be1ed7b..09b4ad7 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 3a659b0..649f181 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"