https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110915
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:16a268785f646b3d641acd8634ab487b24f51c33 commit r14-3603-g16a268785f646b3d641acd8634ab487b24f51c33 Author: Andrew Pinski <apin...@marvell.com> Date: Wed Aug 30 12:27:06 2023 -0700 MATCH: extend min_value/max_value match to vectors This simple patch extends the min_value/max_value match to vector integer types. Using uniform_integer_cst_p makes this easy. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. The testcases pr110915-*.c are the same as pr88784-*.c except using vector types instead. PR tree-optimization/110915 gcc/ChangeLog: * match.pd (min_value, max_value): Extend to vector constants. gcc/testsuite/ChangeLog: * gcc.dg/pr110915-1.c: New test. * gcc.dg/pr110915-10.c: New test. * gcc.dg/pr110915-11.c: New test. * gcc.dg/pr110915-12.c: New test. * gcc.dg/pr110915-2.c: New test. * gcc.dg/pr110915-3.c: New test. * gcc.dg/pr110915-4.c: New test. * gcc.dg/pr110915-5.c: New test. * gcc.dg/pr110915-6.c: New test. * gcc.dg/pr110915-7.c: New test. * gcc.dg/pr110915-8.c: New test. * gcc.dg/pr110915-9.c: New test.