From 42dec64c5a3adf6a0a51034358f52abaf1224e7d Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 25 Jul 2008 17:21:05 +0100 Subject: [PATCH] iwmmxt.md (movv8qi_internal, [...]): Add mem = reg alternative. * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal, movv2si_internal): Add mem = reg alternative. From-SVN: r138146 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/iwmmxt.md | 36 ++++++++++++++++++------------------ 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 854e160c7aa..25a84499328 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-07-25 Joseph Myers + + * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal, + movv2si_internal): Add mem = reg alternative. + 2008-07-25 Andreas Tobler PR bootstrap/36918 diff --git a/gcc/config/arm/iwmmxt.md b/gcc/config/arm/iwmmxt.md index 633aaaa875f..b484b55e6cd 100644 --- a/gcc/config/arm/iwmmxt.md +++ b/gcc/config/arm/iwmmxt.md @@ -168,8 +168,8 @@ ) (define_insn "movv8qi_internal" - [(set (match_operand:V8QI 0 "nonimmediate_operand" "=y,m,y,?r,?y,?r,?r") - (match_operand:V8QI 1 "general_operand" "y,y,mi,y,r,r,mi"))] + [(set (match_operand:V8QI 0 "nonimmediate_operand" "=y,m,y,?r,?y,?r,?r,?m") + (match_operand:V8QI 1 "general_operand" "y,y,mi,y,r,r,mi,r"))] "TARGET_REALLY_IWMMXT" "* switch (which_alternative) @@ -183,14 +183,14 @@ default: return output_move_double (operands); }" [(set_attr "predicable" "yes") - (set_attr "length" "4, 4, 4,4,4,8, 8") - (set_attr "type" "*,store1,load1,*,*,*,load1") - (set_attr "pool_range" "*, *, 256,*,*,*, 256") - (set_attr "neg_pool_range" "*, *, 244,*,*,*, 244")]) + (set_attr "length" "4, 4, 4,4,4,8, 8,8") + (set_attr "type" "*,store1,load1,*,*,*,load1,store1") + (set_attr "pool_range" "*, *, 256,*,*,*, 256,*") + (set_attr "neg_pool_range" "*, *, 244,*,*,*, 244,*")]) (define_insn "movv4hi_internal" - [(set (match_operand:V4HI 0 "nonimmediate_operand" "=y,m,y,?r,?y,?r,?r") - (match_operand:V4HI 1 "general_operand" "y,y,mi,y,r,r,mi"))] + [(set (match_operand:V4HI 0 "nonimmediate_operand" "=y,m,y,?r,?y,?r,?r,?m") + (match_operand:V4HI 1 "general_operand" "y,y,mi,y,r,r,mi,r"))] "TARGET_REALLY_IWMMXT" "* switch (which_alternative) @@ -204,14 +204,14 @@ default: return output_move_double (operands); }" [(set_attr "predicable" "yes") - (set_attr "length" "4, 4, 4,4,4,8, 8") - (set_attr "type" "*,store1,load1,*,*,*,load1") - (set_attr "pool_range" "*, *, 256,*,*,*, 256") - (set_attr "neg_pool_range" "*, *, 244,*,*,*, 244")]) + (set_attr "length" "4, 4, 4,4,4,8, 8,8") + (set_attr "type" "*,store1,load1,*,*,*,load1,store1") + (set_attr "pool_range" "*, *, 256,*,*,*, 256,*") + (set_attr "neg_pool_range" "*, *, 244,*,*,*, 244,*")]) (define_insn "movv2si_internal" - [(set (match_operand:V2SI 0 "nonimmediate_operand" "=y,m,y,?r,?y,?r,?r") - (match_operand:V2SI 1 "general_operand" "y,y,mi,y,r,r,mi"))] + [(set (match_operand:V2SI 0 "nonimmediate_operand" "=y,m,y,?r,?y,?r,?r,?m") + (match_operand:V2SI 1 "general_operand" "y,y,mi,y,r,r,mi,r"))] "TARGET_REALLY_IWMMXT" "* switch (which_alternative) @@ -225,10 +225,10 @@ default: return output_move_double (operands); }" [(set_attr "predicable" "yes") - (set_attr "length" "4, 4, 4,4,4,8, 24") - (set_attr "type" "*,store1,load1,*,*,*,load1") - (set_attr "pool_range" "*, *, 256,*,*,*, 256") - (set_attr "neg_pool_range" "*, *, 244,*,*,*, 244")]) + (set_attr "length" "4, 4, 4,4,4,8, 24,8") + (set_attr "type" "*,store1,load1,*,*,*,load1,store1") + (set_attr "pool_range" "*, *, 256,*,*,*, 256,*") + (set_attr "neg_pool_range" "*, *, 244,*,*,*, 244,*")]) ;; This pattern should not be needed. It is to match a ;; wierd case generated by GCC when no optimizations are -- 2.30.2