[Bug inline-asm/36048] wrong assumption about registers used in asm statements

2008-04-25 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-04-25 22:23 --- *** Bug 36051 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36048

[Bug inline-asm/36048] wrong assumption about registers used in asm statements

2008-04-25 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-04-25 20:59 --- >It often required to modify/reuse an input register inside the inline assembly statement. Just a temporary variable then. The compiler will do its job. Make sure you mark it as an early clobber too :). -- h

[Bug inline-asm/36048] wrong assumption about registers used in asm statements

2008-04-25 Thread jlima at sim dot ul dot pt
--- Comment #2 from jlima at sim dot ul dot pt 2008-04-25 20:56 --- If this is the expected behavior... then ok. I saw this as a bug because it is not possible to add the register to the clobbered registers list (gcc will complain with: "error: can't find a register in class 'DREG' while

[Bug inline-asm/36048] wrong assumption about registers used in asm statements

2008-04-25 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-04-25 19:01 --- >that the register %edx was not modified by the inline assembly statement. Yes that is because your constraints only say the inline-asm reads the value and not modifies it. >: : "a" (d1), "c" (d2),