This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PowerPC TARGET_UPDATE missed pattern


	Mostafa Hagog alerted me that one of the load with update patterns
was not predicated by TARGET_UPDATE, causing that addressing form to slip
through. 

David


        * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
        condition.

Index: rs6000.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.md,v
retrieving revision 1.240
diff -c -p -r1.240 rs6000.md
*** rs6000.md	27 Feb 2003 01:24:06 -0000	1.240
--- rs6000.md	9 Mar 2003 22:25:10 -0000
***************
*** 9413,9419 ****
  			 (match_operand:SI 2 "reg_or_short_operand" "r,I"))))
     (set (match_operand:SI 0 "gpc_reg_operand" "=b,b")
  	(plus:SI (match_dup 1) (match_dup 2)))]
!   ""
    "@
     {lux|lwzux} %3,%0,%2
     {lu|lwzu} %3,%2(%0)"
--- 9413,9419 ----
  			 (match_operand:SI 2 "reg_or_short_operand" "r,I"))))
     (set (match_operand:SI 0 "gpc_reg_operand" "=b,b")
  	(plus:SI (match_dup 1) (match_dup 2)))]
!   "TARGET_UPDATE"
    "@
     {lux|lwzux} %3,%0,%2
     {lu|lwzu} %3,%2(%0)"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]