This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/88100] no warning reported when value for vec_splat_{su}{8,16} would overflow
- From: "helijia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Feb 2019 06:25:29 +0000
- Subject: [Bug target/88100] no warning reported when value for vec_splat_{su}{8,16} would overflow
- Auto-submitted: auto-generated
- References: <bug-88100-4@http.gcc.gnu.org/bugzilla/>
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