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]

ia64 doloop_end_internal


Noticed while poking at loop code.  Doesn't cause a problem, but the
rtl doesn't properly describe the machine instruction.

	* config/ia64/ia64.md (doloop_end_internal): Correct rtl.

OK to commit?

Index: gcc/config/ia64/ia64.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/ia64.md,v
retrieving revision 1.88
diff -u -p -r1.88 ia64.md
--- gcc/config/ia64/ia64.md	11 Jun 2002 12:22:36 -0000	1.88
+++ gcc/config/ia64/ia64.md	17 Jun 2002 10:27:40 -0000
@@ -4284,8 +4284,8 @@
 		(label_ref (match_operand 1 "" ""))
 		(pc)))
    (set (match_dup 0) (if_then_else:DI (ne (match_dup 0) (const_int 0))
-			 (match_dup 0)
-			 (plus:DI (match_dup 0) (const_int -1))))]
+			 (plus:DI (match_dup 0) (const_int -1))
+			 (match_dup 0)))]
   ""
   "br.cloop.sptk.few %l1"
   [(set_attr "itanium_class" "br")

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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