[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 #13 from hjl at gcc dot gnu dot org  2010-01-05 20:44 -------
Subject: Bug 42542

Author: hjl
Date: Tue Jan  5 20:44:14 2010
New Revision: 155660

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

gcc/

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.

        * config/i386/sse.md (umaxv4si3): Revert the last change.
        (umin<mode>3): Likewise.
        (uminv8hi3): Removed.
        (uminv4si3): Likewise.

gcc/testsuite/

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

        * gcc.target/i386/pr42542-1.c (res): Make it 8 elements.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/i386/sse.md
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr42542-1.c


-- 


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: