]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 6dfe1fa4508558cb6725f6fc1ea952b8897fb8db..4d810e6ba13bd999ec5d4e8cb8b80eebf6f9fcc7 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 f8ba978ba755da9b4660495c4ee0876055bddbc3..1fd46cc06040580a9097b700ed67ce66f3a3b543 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";