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

--- Comment #5 from Zdenek Sojka <zsojka at seznam dot cz> ---
Created attachment 60666
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60666&action=edit
auto-reduced testcase showing a similar issues with +Int

The other (cvise-reduced) testcase shows a similar issue with +Inf. It might be
in the end be the same if +Inf is generated by division by zero, but I better
show it as well.

$ aarch64-unknown-linux-gnu-gcc -Ofast testcase-min0.i
testcase-min0.i: In function 'foo0':
testcase-min0.i:37:11: warning: no semicolon at end of struct or union
   37 |           })((union {
      |           ^
testcase-min0.i:40:14: warning: no semicolon at end of struct or union
   40 |              })((union {
      |              ^
testcase-min0.i:43:17: warning: no semicolon at end of struct or union
   43 |                 })((union {
      |                 ^
testcase-min0.i:46:17: warning: no semicolon at end of struct or union
   46 |                 })(v128u8)v128d64_0)
      |                 ^
testcase-min0.i: In function 'main':
testcase-min0.i:64:1: error: unrecognizable insn:
   64 | }
      | ^
(insn 61 59 14 4 (set (reg:SD 32 v0 [orig:102 iftmp.0_3 ] [102])
        (const_double:SD +Inf [+Inf])) -1
     (nil))
during RTL pass: sched_fusion
testcase-min0.i:64:1: internal compiler error: in get_attr_type, at
config/aarch64/aarch64.md:17054
0x282e921 internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517
0xcb0631 fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1722
0x8c9d85 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:108
0x8c9e02 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:116
0xa1ec54 get_attr_type(rtx_insn*)
        /repo/gcc-trunk/gcc/config/aarch64/aarch64.md:17054
0x18ab0f6 aarch64_sched_variable_issue
        /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:16300
0x25adfdd schedule_block(basic_block_def**, void*)
        /repo/gcc-trunk/gcc/haifa-sched.cc:6928
0x13f092a schedule_region
        /repo/gcc-trunk/gcc/sched-rgn.cc:3213
0x13f092a schedule_insns()
        /repo/gcc-trunk/gcc/sched-rgn.cc:3535
0x13f0ce0 schedule_insns()
        /repo/gcc-trunk/gcc/sched-rgn.cc:3946
0x13f0ce0 rest_of_handle_sched_fusion
        /repo/gcc-trunk/gcc/sched-rgn.cc:3770
0x13f0ce0 execute
        /repo/gcc-trunk/gcc/sched-rgn.cc:3948
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.

Reply via email to