]> git.ipfire.org Git - thirdparty/gcc.git/commit
match.pd: When simplifying BFR of an insert, require a mode precision integral type...
authorAndrew Pinski <apinski@marvell.com>
Thu, 9 Feb 2023 15:03:54 +0000 (16:03 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 3 May 2023 12:36:26 +0000 (14:36 +0200)
commit0200ac49e6281fd86ad391b539a4f564ca44e397
treeebf826ff39740c7586be67929ea749cf249e951d
parent072b2cdb620767c283f1329e95c7d4d35686596e
match.pd: When simplifying BFR of an insert, require a mode precision integral type [PR108688]

The same problem as PR 88739 has crept in but
this time in match.pd when simplifying bit_field_ref of
an bit_insert. That is we are generating a BIT_FIELD_REF
of a non-mode-precision integral type.

PR tree-optimization/108688
* match.pd (bit_field_ref [bit_insert]): Avoid generating
BIT_FIELD_REFs of non-mode-precision integral operands.

* gcc.c-torture/compile/pr108688-1.c: New test.

(cherry picked from commit 44f308e59bfa0f93ae05b17e257d8563c12399fd)
gcc/match.pd
gcc/testsuite/gcc.c-torture/compile/pr108688-1.c [new file with mode: 0644]