Re: i386 flags register clober in inline assembly

Linus Torvalds (torvalds@transmeta.com)
Sat, 17 Nov 2001 12:30:17 -0800 (PST)


On 17 Nov 2001, Momchil Velikov wrote:
>
> Indeed, with pattern like:
> (define_insn "*ja"
> [(set (pc)
> (if_then_else (gtu (match_operand:CC 0 "" "") (const_int 0))
> (label_ref (match_operand 1 "" ""))
> (pc)))]
> ""
> "ja ..."
> ...)

As far as I can tell, that pattern already exists in i386.md.

So it shouldn't need any new patterns, it would only need a way to allow
the setting of cc0 from the asm - so that we can get the first part,
namely the "(set (cc0) ..asm..)" thing.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/