Re: [x86_64 PATCH] Implement __imag__ of float _Complex using shufps.

2022-06-26 Thread Uros Bizjak via Gcc-patches
On Sun, Jun 26, 2022 at 1:12 PM Roger Sayle wrote: > > > This patch is a follow-up improvement to my recent patch for > PR rtl-optimization/7061. That patch added the test case > gcc.target/i386/pr7061-2.c: > > float im(float _Complex a) { return __imag__ a; } > > For which GCC on x86_64 currentl

[x86_64 PATCH] Implement __imag__ of float _Complex using shufps.

2022-06-26 Thread Roger Sayle
This patch is a follow-up improvement to my recent patch for PR rtl-optimization/7061. That patch added the test case gcc.target/i386/pr7061-2.c: float im(float _Complex a) { return __imag__ a; } For which GCC on x86_64 currently generates: movq%xmm0, %rax shrq$32, %rax