This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH : H8/300] Modify condition for "can_delay" attribute
- From: Kaushik Phatak <Kaushik dot Phatak at kpitcummins dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Prafulla Thakare <Prafulla dot Thakare at kpitcummins dot com>
- Date: Mon, 1 Feb 2010 05:54:27 -0800
- Subject: [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================================