[Bug middle-end/39943] [4.3/4.4/4.5 Regression] wrong conversion from unsigned int to float

uros at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jul 21 07:23:00 GMT 2009



------- Comment #12 from uros at gcc dot gnu dot org  2009-07-21 07:23 -------
Subject: Bug 39943

Author: uros
Date: Tue Jul 21 07:22:51 2009
New Revision: 149847

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149847
Log:
        Backport from mainline:
        2009-04-29  Richard Guenther  <rguenther@suse.de>

        PR target/39943
        * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
        allow conversion to signed integers.

testsuite/ChangeLog:

        PR target/40811
        * gcc.target/i386/pr39943.c: New test.

        Backport from mainline:
        2009-04-29  Richard Guenther  <rguenther@suse.de>

        PR target/39943
        * lib/target-supports.exp (check_effective_target_vect_uintfloat_cvt):
        New.
        (check_effective_target_vect_floatuint_cvt): Likewise.
        * gcc.dg/vect/slp-10.c: Adjust.
        * gcc.dg/vect/slp-11.c: Adjust.
        * gcc.dg/vect/slp-12b.c: Adjust.
        * gcc.dg/vect/slp-33.c: Adjust.
        * gcc.c-torture/compile/pr39943.c: New testcase.


Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr39943.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.target/i386/pr40811.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/config/i386/i386.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/vect/slp-10.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/vect/slp-11.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/vect/slp-12b.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/vect/slp-33.c
    branches/gcc-4_4-branch/gcc/testsuite/lib/target-supports.exp


-- 


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



More information about the Gcc-bugs mailing list