This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
i386 define_asm_attributes question
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Jan Hubicha <jh at suse dot cz>, Uros Bizjak <ubizjak at gmail dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Tue, 8 May 2012 00:02:37 +0200
- Subject: i386 define_asm_attributes question
Hi,
I noticed gcc predicts huge sizes for asm statements on ix86. This is
due to define_asm_attributes in i386.md, where the length *per single
instruction* in the asm is set to 128. That doesn't look realistic to
me. Is there a good reason for this large value? Or should something
like the patch below be tested? (I choose 16 but I don't know if there
are larger insns for x86 - I assume you do ;-)
Ciao!
Steven
Index: config/i386/i386.md
===================================================================
--- config/i386/i386.md (revision 187257)
+++ config/i386/i386.md (working copy)
@@ -661,7 +661,7 @@
;; Describe a user's asm statement.
(define_asm_attributes
- [(set_attr "length" "128")
+ [(set_attr "length" "16")
(set_attr "type" "multi")])
(define_code_iterator plusminus [plus minus])