[PATCH] i386: Adjust gcc.target/i386/pr22076.c for 64-bit
Uros Bizjak
ubizjak@gmail.com
Mon May 20 22:03:00 GMT 2019
On Mon, May 20, 2019 at 11:54 PM H.J. Lu <hjl.tools@gmail.com> wrote:
> > > > Adjust gcc.target/i386/pr22076.c for 64-bit.
> > > >
> > > > * gcc.target/i386/pr22076.c: Adjusted for 64-bit.
> > > Well, it looks like you're just papering over a code quality regression?
> > > Or am I missing something?
> >
> > We have to load 64bit value from memory to 128 bit XMM register using movq.
> >
> > OTOH, we could just use -mno-sse2 which disables XMM emulation.
> >
>
> Works for me.
2019-05-20 Uroš Bizjak <ubizjak@gmail.com>
PR testsuite/90503
* gcc.target/i386/pr22076.c (dg-options): Add -mno-sse2.
Tested on x86_64-linux-gnu and committed.
Uros.
-------------- next part --------------
Index: gcc.target/i386/pr22076.c
===================================================================
--- gcc.target/i386/pr22076.c (revision 271430)
+++ gcc.target/i386/pr22076.c (working copy)
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fomit-frame-pointer -flax-vector-conversions -mmmx" } */
+/* { dg-options "-O2 -fomit-frame-pointer -flax-vector-conversions -mmmx -mno-sse2" } */
/* { dg-additional-options "-mno-vect8-ret-in-mem" { target *-*-vxworks* } } */
#include <mmintrin.h>
More information about the Gcc-patches
mailing list