This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/88100] no warning reported when value for vec_splat_{su}{8,16} would overflow


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88100

--- Comment #5 from Li Jia He <helijia at gcc dot gnu.org> ---
Author: helijia
Date: Thu Feb 28 06:24:57 2019
New Revision: 269272

URL: https://gcc.gnu.org/viewcvs?rev=269272&root=gcc&view=rev
Log:
        Backport from trunk
        2019-02-20  Li Jia He  <helijia@linux.ibm.com>

        PR target/88100
        * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
        <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
        ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
        range checking it.

        * gcc/testsuite/gcc.target/powerpc/pr88100.c: New testcase.

Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/pr88100.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/config/rs6000/rs6000.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]