This is the mail archive of the
mailing list for the GCC project.
Re: i386 define_asm_attributes question
On Mon, May 7, 2012 at 4:28 PM, Jan Hubicka <firstname.lastname@example.org> wrote:
>> > 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])
>> I checked with our people. ÂThe maximum insn length on Intel
>> processor is 15byte.
> The idea here was originally to prevent LOOP instruction to get out of bounds.
> ASM statement even if they are single line may be arbitrary long and thus can
> run out of the limits.
> We don't produce length instructions anymore, where did you run into problem
> with this setting?
Also the length on asm is multiplied by the number of "statements" in
the inline-asm so it should work correctly anyways.