[Bug target/87455] sse_packed_single_insn_optimal is suboptimal on Zen
fanael4 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Sep 27 16:27:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87455
--- Comment #1 from Fanael <fanael4 at gmail dot com> ---
Assembly diff between the two:
--- /dev/fd/63 2018-09-27 17:59:06.120507763 +0200
+++ /dev/fd/62 2018-09-27 17:59:06.120507763 +0200
@@ -7,21 +7,21 @@
main:
.LFB5179:
.cfi_startproc
- movaps .LC0(%rip), %xmm0
- movaps .LC1(%rip), %xmm1
+ movdqa .LC0(%rip), %xmm0
+ movdqa .LC1(%rip), %xmm1
movl $1000000000, %eax
- movaps .LC2(%rip), %xmm2
+ movdqa .LC2(%rip), %xmm2
.p2align 4,,15
.L2:
paddd %xmm2, %xmm1
- xorps %xmm0, %xmm2
+ pxor %xmm0, %xmm2
decl %eax
paddd %xmm1, %xmm0
- movaps %xmm2, %xmm3
- xorps %xmm2, %xmm1
+ movdqa %xmm2, %xmm3
+ pxor %xmm2, %xmm1
paddd %xmm0, %xmm3
- xorps %xmm1, %xmm0
- movaps %xmm3, %xmm2
+ pxor %xmm1, %xmm0
+ movdqa %xmm3, %xmm2
jne .L2
movaps %xmm3, -40(%rsp)
movaps %xmm1, -56(%rsp)
More information about the Gcc-bugs
mailing list