This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
picking xmm registers in gcc for x86 / extended at&t assembly
- From: Lodewijk Smit <lodewijk_smit at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 15 Aug 2003 05:10:21 -0700 (PDT)
- Subject: picking xmm registers in gcc for x86 / extended at&t assembly
Hi,
I have the following code:
int main() {
signed short Asse1[8] __attribute__ ((aligned
(16)));
signed short Asse2[8] __attribute__ ((aligned
(16)));
asm("pmaxsw %1, %0" : "=x" (Asse1) : "0" (Asse1),
"x" (Asse2));
}
gcc 3.2.1 crashes with an internal compiler error.
gcc 3.3.1 responds with:
small.cpp:4: error: impossible constraint in `asm'
first operand(constraint): match output with
arbritrary xmm register
second operand(constraint): first input is same as
output
third operand(constraint): match second input with
arbritrary xmm register
the output is %0, which matches the destination
operand in the asm
instruction.
What is wrong?
Lodewijk Smit
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com