2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-24 22:11:56 +08:00

Fix rs6000 p10 fusion patterns with old attr type names

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.
This commit is contained in:
Aaron Sawdey 2021-05-21 21:59:39 -05:00
parent 2832d51b38
commit 5e28089157
2 changed files with 4 additions and 4 deletions
gcc/config/rs6000

@ -2673,7 +2673,7 @@
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")])
@ -2691,6 +2691,6 @@
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")])

@ -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";