This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help with gmp-4.0.1 and gcc-3.3.1 on sparcv9?
- From: Bradley Lucier <lucier at math dot purdue dot edu>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Bradley Lucier <lucier at math dot purdue dot edu>, gcc at gcc dot gnu dot org
- Date: Wed, 1 Oct 2003 19:28:42 -0500
- Subject: Re: Help with gmp-4.0.1 and gcc-3.3.1 on sparcv9?
On Wednesday, October 1, 2003, at 03:23 PM, Jakub Jelinek wrote:
Looks to be gmp bug:
__asm__ ("subcc %4,%5,%1\n"
" subccc %6,%7,%%g0\n"
" subc %2,%3,%0"
: "=r" (_xh), "=&r" (_r)
: "%rJ" ((r)), "rI" (_xh), "%rJ" ((n0)), "rI" (_xl), "rJ" (((n0)) >>
32), "rJ" ((_xl) >> 32)
: "cc");
Obviously, the %2 is not commutative with %3 and neither is %4 with %5.
Just s/"%r/"r/g should fix it.
I don't understand syntax for assembler statements; but replacing %r by
r in the second last line didn't fix it. (This is from the macro for
sub_ddmmss in longlong.h.)
Brad