ipa-strub: Fix handling of _BitInt returns [PR113406]
commit2c74d5c0a0f21ae1d0c195ca0d81a3d1032f27e3
authorJakub Jelinek <jakub@redhat.com>
Wed, 17 Jan 2024 12:54:44 +0000 (17 13:54 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 17 Jan 2024 12:54:44 +0000 (17 13:54 +0100)
tree384feec075d8640578b931b7aff0004c42882382
parentdf0a668b784556fe4317317d58961652d93d53de
ipa-strub: Fix handling of _BitInt returns [PR113406]

Seems pass_ipa_strub::execute contains a copy of the expand_thunk
code I've changed for _BitInt in r14-6805 PR112941 - larger _BitInts
are aggregate_value_p even when they are is_gimple_reg_type.

2024-01-17  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/113406
* ipa-strub.cc (pass_ipa_strub::execute): Check aggregate_value_p
regardless of whether is_gimple_reg_type (restype) or not.

* gcc.dg/bitint-70.c: New test.
gcc/ipa-strub.cc
gcc/testsuite/gcc.dg/bitint-70.c [new file with mode: 0644]