]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Fix loop limit for built-in constant checking
authorPeter Bergner <bergner@linux.ibm.com>
Thu, 16 Jan 2025 16:49:45 +0000 (10:49 -0600)
committerPeter Bergner <bergner@linux.ibm.com>
Fri, 24 Jan 2025 15:23:11 +0000 (09:23 -0600)
commit4e508cbb938a8936bc6aefd7823b55107aa4a7f9
tree8ba03a56f7d26bc37edfa6223f2281b1e389bb7a
parent11e11d496ffc3e2e52759bd52c6bd1aa3c4e83c0
rs6000: Fix loop limit for built-in constant checking

The loop checking for built-in constant operand restrictions was missing
some operands due to the loop limit being too small.  Fixing that exposed
a testsuite failure which is caused by a typo in the pmxvi4ger8pp definition
where we had made the PMASK field too small.

2025-01-16  Peter Bergner  <bergner@linux.ibm.com>

gcc/
* config/rs6000/rs6000-builtin.cc (rs6000_expand_builtin): Use correct
array size for the loop limit.
* config/rs6000/rs6000-builtins.def: Fix field size for PMASK operand.

(cherry picked from commit 1a2d63a78f99b7fdc2eff5bf9065682d5bbbaaca)
gcc/config/rs6000/rs6000-builtin.cc
gcc/config/rs6000/rs6000-builtins.def