From 6a24a83ec41d47f1644689de4dddb6ccff12958a Mon Sep 17 00:00:00 2001 From: James Greenhalgh Date: Fri, 6 Sep 2013 13:42:12 +0000 Subject: [PATCH] [Patch AArch64] Fix types for some multiply instructions. gcc/ * config/aarch64/aarch64.md (*madd): Fix type attribute. (*maddsi_uxtw): Likewise. (*msub): Likewise. (*msubsi_uxtw): Likewise. (maddsidi4): Likewise. (msubsidi4): Likewise. From-SVN: r202330 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/aarch64/aarch64.md | 12 ++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6df6ca45532..5ca96326523 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2013-09-06 James Greenhalgh + + * config/aarch64/aarch64.md + (*madd): Fix type attribute. + (*maddsi_uxtw): Likewise. + (*msub): Likewise. + (*msubsi_uxtw): Likewise. + (maddsidi4): Likewise. + (msubsidi4): Likewise. + 2013-09-06 James Greenhalgh * config/arm/types.md: Split fdiv as fsqrt, fdiv. diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md index ded37efb4c8..e28764da5dd 100644 --- a/gcc/config/aarch64/aarch64.md +++ b/gcc/config/aarch64/aarch64.md @@ -2281,7 +2281,7 @@ "" "madd\\t%0, %1, %2, %3" [(set_attr "v8type" "madd") - (set_attr "type" "mul") + (set_attr "type" "mla") (set_attr "mode" "")] ) @@ -2295,7 +2295,7 @@ "" "madd\\t%w0, %w1, %w2, %w3" [(set_attr "v8type" "madd") - (set_attr "type" "mul") + (set_attr "type" "mla") (set_attr "mode" "SI")] ) @@ -2308,7 +2308,7 @@ "" "msub\\t%0, %1, %2, %3" [(set_attr "v8type" "madd") - (set_attr "type" "mul") + (set_attr "type" "mla") (set_attr "mode" "")] ) @@ -2323,7 +2323,7 @@ "" "msub\\t%w0, %w1, %w2, %w3" [(set_attr "v8type" "madd") - (set_attr "type" "mul") + (set_attr "type" "mla") (set_attr "mode" "SI")] ) @@ -2373,7 +2373,7 @@ "" "maddl\\t%0, %w1, %w2, %3" [(set_attr "v8type" "maddl") - (set_attr "type" "mul") + (set_attr "type" "mlal") (set_attr "mode" "DI")] ) @@ -2387,7 +2387,7 @@ "" "msubl\\t%0, %w1, %w2, %3" [(set_attr "v8type" "maddl") - (set_attr "type" "mul") + (set_attr "type" "mlal") (set_attr "mode" "DI")] ) -- 2.30.2