]> git.ipfire.org Git - thirdparty/gcc.git/commit
lower-bitint: Fix up VIEW_CONVERT_EXPR handling in handle_operand_addr [PR113639]
authorJakub Jelinek <jakub@redhat.com>
Wed, 31 Jan 2024 09:50:33 +0000 (10:50 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 31 Jan 2024 09:55:42 +0000 (10:55 +0100)
commit90ac839a470d61ffcd9eee0d7d37ca9c385dfefb
tree92627b3bc190a3a44d387d8fd2397c1f4b984ccc
parent9bf91fa360156476bce9899394f81b1e875593f4
lower-bitint: Fix up VIEW_CONVERT_EXPR handling in handle_operand_addr [PR113639]

Yet another spot where we need to treat VIEW_CONVERT_EXPR differently
from NOP_EXPR/CONVERT_EXPR.

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

PR tree-optimization/113639
* gimple-lower-bitint.cc (bitint_large_huge::handle_operand_addr):
For VIEW_CONVERT_EXPR set rhs1 to its operand.

* gcc.dg/bitint-79.c: New test.
gcc/gimple-lower-bitint.cc
gcc/testsuite/gcc.dg/bitint-79.c [new file with mode: 0644]