This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386]: Fix PR72867, incorrect optimization of VMINPS/VMAXPS at compile time
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 16 Aug 2016 18:25:08 +0200
- Subject: Re: [PATCH, i386]: Fix PR72867, incorrect optimization of VMINPS/VMAXPS at compile time
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4arDJ1A2kvSdXC1UV8=V2c2-ncZVrVxqwnzqipPcSr-=g@mail.gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Aug 15, 2016 at 08:53:35PM +0200, Uros Bizjak wrote:
> 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
>
> PR target/72867
> * gcc.target/i386/pr72867.c: New test.
The testcase fails on i686-linux, because -msse isn't provided.
Fixed thusly, tested on i686-linux, committed as obvious to trunk:
2016-08-16 Jakub Jelinek <jakub@redhat.com>
PR target/72867
* gcc.target/i386/pr72867.c: Add -msse to dg-options.
--- gcc/testsuite/gcc.target/i386/pr72867.c.jj 2016-08-16 15:50:33.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/pr72867.c 2016-08-16 17:52:30.000000000 +0200
@@ -1,6 +1,6 @@
/* PR target/72867 */
/* { dg-do run } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -msse" } */
/* { dg-require-effective-target sse } */
#include "sse-check.h"
Jakub