Commit 55b2de75 by Uros Bizjak Committed by Uros Bizjak

re PR target/27790 (Unrecognizable insn with -ftree-vectorize -O1 -msse2)

        PR target/27790
        * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
        into register for (code == GTU).

testsuite/ChangeLog:

        * gcc.target/i386/pr27790.c: New test.

From-SVN: r114229
parent 076b6b4c
2006-05-30 Uros Bizjak <uros@kss-loka.si>
PR target/27790
* config/i386/i386.c (ix86_expand_int_vcond): Force cop0
into register for (code == GTU).
2006-05-29 Roger Sayle <roger@eyesopen.com> 2006-05-29 Roger Sayle <roger@eyesopen.com>
PR tree-optimization/24964 PR tree-optimization/24964
......
...@@ -11485,6 +11485,8 @@ ix86_expand_int_vcond (rtx operands[]) ...@@ -11485,6 +11485,8 @@ ix86_expand_int_vcond (rtx operands[])
tricks to turn this into a signed comparison against 0. */ tricks to turn this into a signed comparison against 0. */
if (code == GTU) if (code == GTU)
{ {
cop0 = force_reg (mode, cop0);
switch (mode) switch (mode)
{ {
case V4SImode: case V4SImode:
......
2006-05-30 Uros Bizjak <uros@kss-loka.si>
PR target/27790
* gcc.target/i386/pr27790.c: New test.
2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org> 2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/27757 PR libgfortran/27757
/* { dg-do compile } */
/* { dg-options "-O -ftree-vectorize -msse2" } */
void binarize (int npixels, unsigned char *b)
{
int i;
for (i = 0; i < npixels; i++)
b[i] = (b[i] > 225 ? 0xff : 0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment