https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86902

            Bug ID: 86902
           Summary: [9 Regression] ICE: in as_a, at machmode.h:356 at -O
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: aarch64-unknown-linux-gnu

Created attachment 44521
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44521&action=edit
reduced testcase

Compiler output:
$ aarch64-unknown-linux-gnu-gcc -O testcase.c
during RTL pass: combine
testcase.c: In function 'c':
testcase.c:10:1: internal compiler error: in as_a, at machmode.h:356
 }
 ^
0xc2ec89 scalar_int_mode as_a<scalar_int_mode>(machine_mode)
        /repo/gcc-trunk/gcc/machmode.h:356
0xc2ec89 simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:1838
0xc28b60 simplify_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:873
0xc2cf50 simplify_gen_unary(rtx_code, machine_mode, rtx_def*, machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:372
0x141f679 if_then_else_cond
        /repo/gcc-trunk/gcc/combine.c:9249
0x141f468 if_then_else_cond
        /repo/gcc-trunk/gcc/combine.c:9267
0x143e378 combine_simplify_rtx
        /repo/gcc-trunk/gcc/combine.c:5764
0x1446529 subst
        /repo/gcc-trunk/gcc/combine.c:5646
0x144613c subst
        /repo/gcc-trunk/gcc/combine.c:5580
0x144ae7f try_combine
        /repo/gcc-trunk/gcc/combine.c:3385
0x1456d10 combine_instructions
        /repo/gcc-trunk/gcc/combine.c:1302
0x1456d10 rest_of_handle_combine
        /repo/gcc-trunk/gcc/combine.c:14945
0x1456d10 execute
        /repo/gcc-trunk/gcc/combine.c:14990
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ aarch64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-263387-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/9.0.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl
--with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu
--with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld
--with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-263387-checking-yes-rtl-df-extra-aarch64
Thread model: posix
gcc version 9.0.0 20180808 (experimental) (GCC) 

Tested revisions:
r263450 - FAIL
r263387 - FAIL

Reply via email to