h8300.md (define_asm_attributes): Specify the length of an asm insn more precisely.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 9 Oct 2003 23:50:46 +0000 (23:50 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 9 Oct 2003 23:50:46 +0000 (23:50 +0000)
* config/h8300/h8300.md (define_asm_attributes): Specify
the length of an asm insn more precisely.

From-SVN: r72289

gcc/ChangeLog
gcc/config/h8300/h8300.md

index 7e0017a6565113fc282eef3a4b1ab0fe65a26edd..e79d7befefa45f1f4b8a48f3b708fc6c4a50e75d 100644 (file)
@@ -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.
index 9c8b88fabe5609a05976031f1a29507410075224..0daa45c2f1159867bca30fb3d35f862507b8dc67 100644 (file)
 ;; 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)))])
 \f
 ;; ----------------------------------------------------------------------
 ;; MOVE INSTRUCTIONS