aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-10-09 23:50:46 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-10-09 23:50:46 +0000
commit5e46c560707847ce25e13a93019896e9e25b2d8a (patch)
tree4ddf5be13e904f5ce330148928844d910b68f1b7 /gcc
parent1e2eb6e8a17b8c9d8a3393fa6fd279a35cc8e627 (diff)
downloadgcc-5e46c560707847ce25e13a93019896e9e25b2d8a.zip
gcc-5e46c560707847ce25e13a93019896e9e25b2d8a.tar.gz
gcc-5e46c560707847ce25e13a93019896e9e25b2d8a.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/h8300/h8300.md6
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7e0017a..e79d7be 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index 9c8b88f..0daa45c 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