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]

[PATCH : H8/300] Modify condition for "can_delay" attribute


Hi,
The following patch modifies the condition for the "can_delay"
attribute. The 'geu' condition ensures that instructions having
length greater or equal to 2 are not placed in delay slots.
Regression done for h8300-elf-* and no new regressions found.
Please comment.

Regards,
Kaushik Phatak
www.kpitgnutools.com 

=======================Start of Patch================================
ChangeLog
2010-02-01  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>

        * config/h8300/h8300.md (can_delay): Change attibute condition
		
--- ORIG/trunk/gcc/config/h8300/h8300.md	2009-05-12 15:13:48.000000000 +0530
+++ trunk./gcc/config/h8300/h8300.md	2010-02-01 11:26:04.000000000 +0530
@@ -153,7 +153,7 @@
 (define_attr "can_delay" "no,yes"
   (cond [(eq_attr "type" "branch,bitbranch,call")
 	   (const_string "no")
-	 (ne (symbol_ref "get_attr_length (insn)") (const_int 2))
+	 (geu (symbol_ref "get_attr_length (insn)") (const_int 2))
 	   (const_string "no")]
 	(const_string "yes")))	
=========================End Of Patch================================


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