The first attached test case canaries the problem by generating an obviously bogus "used before set" warning with -Wall. An x86-specific modification yields a test case that demonstrates the loss of an input operand to a volatile inline asm.
Created attachment 4480 [details] test that generates a warning
Created attachment 4481 [details] test that demonstrates incorrect code
Fixed in the mainline by: 2003-07-26 Richard Henderson PR inline-asm/11676 * cse.c (count_reg_usage): Handle asm_operands properly.
*** Bug 10536 has been marked as a duplicate of this bug. ***