Fix rs6000 p10 fusion patterns with old attr type names
authorAaron Sawdey <acsawdey@linux.ibm.com>
Sat, 22 May 2021 02:59:39 +0000 (21:59 -0500)
committerAaron Sawdey <acsawdey@linux.ibm.com>
Sat, 22 May 2021 02:59:39 +0000 (21:59 -0500)
Somehow I managed to check in a version of genfusion.pl this
afternoon that was not updated to the new insn attr type names.
Committing as obvious and to make the code match what was posted
and reviewed.

gcc/
* config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
* config/rs6000/fusion.md: Regenerate file.

gcc/config/rs6000/fusion.md
gcc/config/rs6000/genfusion.pl

index 6dfe1fa..4d810e6 100644 (file)
    add %3,%1,%0\;add %3,%3,%2
    add %3,%1,%0\;add %3,%3,%2
    add %4,%1,%0\;add %3,%4,%2"
-  [(set_attr "type" "fuse_arithlog")
+  [(set_attr "type" "fused_arith_logical")
    (set_attr "cost" "6")
    (set_attr "length" "8")])
 
    vaddudm %3,%1,%0\;vaddudm %3,%3,%2
    vaddudm %3,%1,%0\;vaddudm %3,%3,%2
    vaddudm %4,%1,%0\;vaddudm %3,%4,%2"
-  [(set_attr "type" "fuse_vec")
+  [(set_attr "type" "fused_vector")
    (set_attr "cost" "6")
    (set_attr "length" "8")])
index f8ba978..1fd46cc 100755 (executable)
@@ -247,14 +247,14 @@ sub gen_addadd
       if ( $kind eq 'vector' ) {
          $vchr = "v";
          $op = "vaddudm";
-         $type = "fuse_vec";
+         $type = "fused_vector";
          $mode = "V2DI";
          $pred = "altivec_register_operand";
          $constraint = "v";
       } else {
          $vchr = "";
          $op = "add";
-         $type = "fuse_arithlog";
+         $type = "fused_arith_logical";
          $mode = "GPR";
          $pred = "gpc_reg_operand";
          $constraint = "r";