This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Question] about Inline asm


On Apr 30, 2001, lassy@samsung.co.kr wrote:

> I've got a problem about Inline Assembly.

I'm not sure I could understand your problem.  Is GCC emitting
incorrect assembly code for ABSD?  What did you expect, and what did
you get?

Note that, when you access arg1 and arg2 as doubles, you're invoking
undefined behavior, violating assumptions made by GCC's alias
analyzer, that may cause it not to keep the assignments to a and b
before the uses in the inlined copy of ABSD.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]