Re: Storing 64-bit result on ARM using inline assembly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Andrew Haley wrote:
> 
> Could be.  Was this with exactly the test code I posted, no changes?
> 
> Andrew.
> 

Actually, the test code you posted runs as follows:
No optimization:
bee7ee743fffffff
3fffffff00000001

-O, -O2, -O3:
3fffffff
3fffffff00000001

If I add the line
    *result = 0LL;
before the inline assembly, then the output is like in my previous post.

Based on the result of the no-optimization run, it definitely looks like an
alignment problem. Maybe with the other optimization flags the memory space
just above is set to 0.
-- 
View this message in context: http://www.nabble.com/Storing-64-bit-result-on-ARM-using-inline-assembly-tp24296951p24311141.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux