This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR target/39590: inline asm %z on amd64 says "ll" instead of "q"
> FWIW, this change will break existing asm statement with "fild%z".
Only on Solaris -- but you cannot eat both pieces of the cake, all we
can do is document this on the release notes. I don't think the
likelihood of people using fild%z in asm statements is very high, while
the PR reporter's case is at least plausible.
Still I don't see what's wrong with
#define blah(size) "mov" size " %0, %1"
#define macro(X) \
if (sizeof (X) == 4) \
asm (blah("l")); \
else \
asm (blah("q"));
Paolo