re PR target/88905 (ICE: in decompose, at rtl.h:2253 with -mabm and __builtin_popcountll)
authorJakub Jelinek <jakub@redhat.com>
Tue, 22 Jan 2019 09:11:35 +0000 (10:11 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 22 Jan 2019 09:11:35 +0000 (10:11 +0100)
commitc875d46fefac13675853f58ec7dea8f402779af0
tree8aac90b4f47bb36cf9a5d3310139b38f34e1a05e
parentc4814f99ed1340f009a804a19e81f787f7b31ea6
re PR target/88905 (ICE: in decompose, at rtl.h:2253 with -mabm and __builtin_popcountll)

PR target/88905
* optabs.c (add_equal_note): Add op0_mode argument, use it instead of
GET_MODE (op0).
(expand_binop_directly, expand_doubleword_clz,
expand_doubleword_popcount, expand_ctz, expand_ffs,
expand_unop_direct, maybe_emit_unop_insn): Adjust callers.

* gcc.dg/pr88905.c: New test.

From-SVN: r268139
gcc/ChangeLog
gcc/optabs.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr88905.c [new file with mode: 0644]