PIII-instruction SHUFPS with gcc-inline-asm

PIII-instruction SHUFPS with gcc-inline-asm

Post by Martin Kahle » Sat, 20 Nov 1999 04:00:00



[Posted and mailed]



Quote:> Hello!

> How do I use the intel PIII-instruction SHUFPS with gcc inline asm?

> The following code-snippet only gives a "Error: operands given don't
> match any known 386 instruction"-error:

> #define xmm_shufps(a,b,c) \
>    __asm__ __volatile__("movups %1,%%xmm0\n\t"\
>                    "movups %2,%%xmm1\n\t"\
>                    "shufps %%xmm1,%%xmm0,%3\n\t"\
>                    "movups %%xmm0,%0\n\t"\
>                    : "=m"(a)\
>                    : "m"(a),"m"(b),"Ni"(c));

Your binutils (as) don't know the instruction.
Try using the newest one from
ftp://ftp.varesearch.com/pub/support/hjl/binutils/

Bye,
Martin.

--
The early bird gets the worm. If you want something else for      
breakfast, get up later.

 
 
 

1. PIII-instruction SHUFPS with gcc-inline-asm

Hello!

How do I use the intel PIII-instruction SHUFPS with gcc inline asm?

The following code-snippet only gives a "Error: operands given don't
match any known 386 instruction"-error:

#define xmm_shufps(a,b,c) \
   __asm__ __volatile__("movups %1,%%xmm0\n\t"\
                        "movups %2,%%xmm1\n\t"\
                        "shufps %%xmm1,%%xmm0,%3\n\t"\
                        "movups %%xmm0,%0\n\t"\
                        : "=m"(a)\
                        : "m"(a),"m"(b),"Ni"(c));

System: linux-2.2.9 (with PIII-patch for ISSE-instructions), glibc-2.1,
egcs-1.1.2, binutils-2.9.1.0.25

Thanks in advance
Thomas

2. Linux amd Frame Relay

3. inline asm errors when compiling linux-1.2.13 with gcc-2.7.1

4. sysback version 3 and 4 on aix 432

5. gcc inline asm - short question

6. Grrr...can't get fancy mach_64 to work w/ X...

7. Help with gcc inline floating point asm

8. Can "make" work in ELF-default environment to produce a.out binaries?

9. GCC gas x86 asm -> Intel X86 asm ?

10. inline asm

11. New Instructions of Athlon,PIII,P4

12. Linux-1.0-inline-asm uploaded

13. C inline ASM IN/OUT operation