[G]CSE of extended asm statements

Richard Henderson rth@cygnus.com
Tue Aug 29 16:04:00 GMT 2000

On Tue, Aug 29, 2000 at 01:23:43PM -0600, Jeffrey A Law wrote:
>   > 	* gcc.c-torture/compile/20000827-1.c: New test.
> Err, this is x86 specific since it depends on 'a' and 'b' being defined
> register classes.

Look again:

+      /* gcse should not merge these asm statements, since their
+        output operands have different modes.  */
+      __asm__("":"=r" (a)); __asm__("":"=r" (b));

"r" is the register class, "a" and "b" are variables.  The
test case should be ok genericly.


More information about the Gcc-patches mailing list