[patch] h8300.md: Improve define_asm_attributes.
Kazu Hirata
kazu@cs.umass.edu
Thu Oct 9 23:50:00 GMT 2003
Hi,
Attached is a patch to specify the length of an asm insn more
precisely.
Tested on h8300 port. Committed.
Kazu Hirata
2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (define_asm_attributes): Specify
the length of an asm insn more precisely.
Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.237
diff -u -r1.237 h8300.md
--- h8300.md 9 Oct 2003 13:13:52 -0000 1.237
+++ h8300.md 9 Oct 2003 18:44:08 -0000
@@ -106,7 +106,11 @@
;; statement. The maximum length of 14 bytes is achieved on H8SX.
(define_asm_attributes
- [(set_attr "length" "14")])
+ [(set (attr "length")
+ (cond [(ne (symbol_ref "TARGET_H8300") (const_int 0)) (const_int 4)
+ (ne (symbol_ref "TARGET_H8300H") (const_int 0)) (const_int 10)
+ (ne (symbol_ref "TARGET_H8300S") (const_int 0)) (const_int 10)]
+ (const_int 14)))])
;; ----------------------------------------------------------------------
;; MOVE INSTRUCTIONS
More information about the Gcc-patches
mailing list