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]
Other format: [Raw text]

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



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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]