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

            Bug ID: 118418
           Summary: [15 Regression][gcn] Compiler selftest ICE in
                    assert_rtx_eq_at, at selftest-rtl.cc:57 / FAIL:
                    ASSERT_RTX_EQ (val, folded) since
                    r15-6777-g06c4cf398947b5
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: build, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: ams at gcc dot gnu.org, rsandifo at gcc dot gnu.org
  Target Milestone: ---
            Target: gcn

Since the commit
  r15-6777-g06c4cf398947b5 rtl: Remove invalid compare simplification
[PR117186]

the GCC build fails with the following ICE during the self test at the
end of the build.

* * *

IMHO, as no target-code linking/assembling is involved, just configuring
GCC with
 ..../configure --target=amdgcn-amdhsa
should be enough for reproducing. Otherwise, the build descriptions at
    https://gcc.gnu.org/install/specific.html#amdgcn-x-amdhsa
and https://gcc.gnu.org/wiki/Offloading#Building_and_Obtaining_GCC
should help.

* * *

LC_ALL=C GCC_COLORS=
/net/carlos/srv/data/tburnus/projects/build-gcc-trunk-offload-amdgcn/./gcc/xgcc
-B/net/carlos/srv/data/tburnus/projects/build-gcc-trunk-offload-amdgcn/./gcc/ 
-xc++ -nostdinc /dev/null -S -o /dev/null
-fself-test=/net/carlos/srv/data/tburnus/repos/gcc/gcc/testsuite/selftests
/net/carlos/srv/data/tburnus/repos/gcc/gcc/simplify-rtx.cc:8600:
test_comparisons: FAIL: ASSERT_RTX_EQ (val, folded)
  expected: (const_int -1 [0xffffffffffffffff])
  actual: (const_int 0 [0])
cc1: internal compiler error: in assert_rtx_eq_at, at selftest-rtl.cc:57
/net/carlos/srv/data/tburnus/repos/gcc/gcc/simplify-rtx.cc:8600:
test_comparisons: FAIL: ASSERT_RTX_EQ (val, folded)
  expected: (const_int -1 [0xffffffffffffffff])
  actual: (const_int 0 [0])
cc1plus: internal compiler error: in assert_rtx_eq_at, at selftest-rtl.cc:57
0x22a6616 internal_error(char const*, ...)
       
/net/carlos/srv/data/tburnus/repos/gcc/gcc/diagnostic-global-context.cc:517
0xaf0c78 fancy_abort(char const*, int, char const*)
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/diagnostic.cc:1722
0x11f0dc1 selftest::assert_rtx_eq_at(selftest::location const&, char const*,
rtx_def*, rtx_def*)
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/selftest-rtl.cc:57
0x12151f1 test_comparisons
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/simplify-rtx.cc:8600
0x12151f1 test_scalar_ops
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/simplify-rtx.cc:8631
0x12151f1 selftest::simplify_rtx_cc_tests()
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/simplify-rtx.cc:9206
0x21a2808 selftest::run_tests()
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/selftest-run-tests.cc:122
0x123b49e toplev::run_self_tests()
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/toplev.cc:2267
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[2]: *** [/net/carlos/srv/data/tburnus/repos/gcc/gcc/c/Make-lang.in:153:
s-selftest-c] Error 1
make[2]: *** Waiting for unfinished jobs....
0x25c1546 internal_error(char const*, ...)
       
/net/carlos/srv/data/tburnus/repos/gcc/gcc/diagnostic-global-context.cc:517
0xbd5010 fancy_abort(char const*, int, char const*)
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/diagnostic.cc:1722
0x24b03d1 selftest::assert_rtx_eq_at(selftest::location const&, char const*,
rtx_def*, rtx_def*)
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/selftest-rtl.cc:57
0x1525891 test_comparisons
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/simplify-rtx.cc:8600
0x1525891 test_scalar_ops
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/simplify-rtx.cc:8631
0x1525891 selftest::simplify_rtx_cc_tests()
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/simplify-rtx.cc:9206
0x24b06d8 selftest::run_tests()
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/selftest-run-tests.cc:122
0x154bb3e toplev::run_self_tests()
        /net/carlos/srv/data/tburnus/repos/gcc/gcc/toplev.cc:2267
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[2]: *** [/net/carlos/srv/data/tburnus/repos/gcc/gcc/cp/Make-lang.in:256:
s-selftest-c++] Error 1

Reply via email to