https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81228
Bug ID: 81228 Summary: ICE in gen_vec_cmpv2dfv2di, at config/aarch64/aarch64-simd.md:2508 Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Host: x86_64-linux-gnu Target: aarch64-linux-gnu Following test-case produces ICE: $ aarch64-linux-gnu-gcc gcc/testsuite/gcc.dg/pr50310-2.c -fno-trapping-math -O3 -c during RTL pass: expand /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr50310-2.c: In function ‘main’: /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr50310-2.c:30:19: internal compiler error: in gen_vec_cmpv2dfv2di, at config/aarch64/aarch64-simd.md:2508 s3[8 * 4 + i] = __builtin_islessgreater (s1[i], s2[i]) ? -1.0 : 0.0; ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x101abbd gen_vec_cmpv2dfv2di(rtx_def*, rtx_def*, rtx_def*, rtx_def*) .././../gcc/config/aarch64/aarch64-simd.md:2508 0x101b7cd gen_vcondv2dfv2df(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*) .././../gcc/config/aarch64/aarch64-simd.md:2618 0xa5b798 maybe_expand_insn(insn_code, unsigned int, expand_operand*) .././../gcc/optabs.c:7099 0xa5b798 expand_insn(insn_code, unsigned int, expand_operand*) .././../gcc/optabs.c:7130 0xa5c290 expand_vec_cond_expr(tree_node*, tree_node*, tree_node*, tree_node*, rtx_def*) .././../gcc/optabs.c:5678 0x822b37 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) .././../gcc/expr.c:9544 0x810c1d expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) .././../gcc/expr.c:9780 0x81dd14 expand_expr .././../gcc/expr.h:276 0x81dd14 expand_assignment(tree_node*, tree_node*, bool) .././../gcc/expr.c:4951 0x709068 expand_gimple_stmt_1 .././../gcc/cfgexpand.c:3643 0x709068 expand_gimple_stmt .././../gcc/cfgexpand.c:3741 0x70b017 expand_gimple_basic_block .././../gcc/cfgexpand.c:5745 0x710ce6 execute .././../gcc/cfgexpand.c:6354