RE: [x86 PATCH] Use movss/movsd to implement V4SI/V2DI VEC_PERM.

2022-12-25 Thread Roger Sayle
* gcc.target/i386/sse-movss-4.c: New test case. * gcc.target/i386/sse2-movsd-3.c: New test case. Roger -- > -Original Message- > From: Uros Bizjak > Sent: 23 December 2022 17:18 > To: Roger Sayle > Cc: GCC Patches > Subject: Re: [x86 PATCH] Use movss/movsd

Re: [x86 PATCH] Use movss/movsd to implement V4SI/V2DI VEC_PERM.

2022-12-23 Thread Uros Bizjak via Gcc-patches
On Fri, Dec 23, 2022 at 5:46 PM Roger Sayle wrote: > > > This patch tweaks the x86 backend to use the movss and movsd instructions > to perform some vector permutations on integer vectors (V4SI and V2DI) in > the same way they are used for floating point vectors (V4SF and V2DF). > > As a

[x86 PATCH] Use movss/movsd to implement V4SI/V2DI VEC_PERM.

2022-12-23 Thread Roger Sayle
This patch tweaks the x86 backend to use the movss and movsd instructions to perform some vector permutations on integer vectors (V4SI and V2DI) in the same way they are used for floating point vectors (V4SF and V2DF). As a motivating example, consider: typedef unsigned int v4si