]> 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>
Thu, 9 Feb 2023 15:03:54 +0000 (16:03 +0100)
commit44f308e59bfa0f93ae05b17e257d8563c12399fd
treef0c6f8c0a79eeffdd41ae52b8ef4b224324a4bec
parentac2949574da9a668daad421d7edb79f172f73c6f
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.
gcc/match.pd
gcc/testsuite/gcc.c-torture/compile/pr108688-1.c [new file with mode: 0644]