[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug target/42542] Vectorizer produces incorrect results on max/min of unsigned intergers




------- Comment #18 from hjl at gcc dot gnu dot org  2010-01-07 19:58 -------
Subject: Bug 42542

Author: hjl
Date: Thu Jan  7 19:58:16 2010
New Revision: 155709

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155709
Log:
Properly convert GTU to GT for V4SI and V2DI

gcc/

2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline
        2010-01-05  Paolo Bonzini  <bonzinI@gnu.rg>
                    H.J. Lu  <hongjiu.lu@intel.com>

        PR target/42542
        * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
        for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
        operands to make them signed.

gcc/testsuite/

2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline
        2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>

        PR target/42542
        * gcc.target/i386/pr42542-1.c: New.
        * gcc.target/i386/pr42542-1a.c: Likewise.
        * gcc.target/i386/pr42542-1b.c: Likewise.
        * gcc.target/i386/pr42542-2.c: Likewise.
        * gcc.target/i386/pr42542-2a.c: Likewise.
        * gcc.target/i386/pr42542-2b.c: Likewise.
        * gcc.target/i386/pr42542-3.c: Likewise.
        * gcc.target/i386/pr42542-3a.c: Likewise.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr42542-1.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr42542-1a.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr42542-1b.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr42542-2.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr42542-2a.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr42542-2b.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr42542-3.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr42542-3a.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/config/i386/i386.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42542

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.


Reply to: