From 5e46c560707847ce25e13a93019896e9e25b2d8a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 9 Oct 2003 23:50:46 +0000 Subject: [PATCH] h8300.md (define_asm_attributes): Specify the length of an asm insn more precisely. * config/h8300/h8300.md (define_asm_attributes): Specify the length of an asm insn more precisely. From-SVN: r72289 --- gcc/ChangeLog | 5 +++++ gcc/config/h8300/h8300.md | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e0017a6565..e79d7befefa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-10-09 Kazu Hirata + + * config/h8300/h8300.md (define_asm_attributes): Specify + the length of an asm insn more precisely. + 2003-10-09 Rainer Orth * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define. diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 9c8b88fabe5..0daa45c2f11 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -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 -- 2.30.2