https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125895
Bug ID: 125895
Summary: ICE on x86_64-linux-gnu: in native_encode_rtx, at
simplify-rtx.cc:7985 with empty inline assembly at
-O2/3
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: jiangchangwu at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://godbolt.org/z/96W9x1Yha
*******************************************************************************
Program:
$ cat mutant.c
__attribute__((__vector_size__(2 * sizeof(float)))) float b;
void a(float d) {
double c;
b -= *(float *)__builtin_memcpy(&d, &c, 1);
__asm__("");
a(2);
}
*******************************************************************************
Command Lines:
$ gcc -O3 -c small.c
during RTL pass: x86_cse
small.c: In function 'a':
small.c:7:1: internal compiler error: in native_encode_rtx, at
simplify-rtx.cc:7979
7 | }
| ^
0x593a78b diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
???:0
0x591f98a internal_error(char const*, ...)
???:0
0x593af5e fancy_abort(char const*, int, char const*)
???:0
0x229b6a6 native_encode_rtx(machine_mode, rtx_def*, vec<unsigned char, va_heap,
vl_ptr>&, unsigned int, unsigned int)
???:0
0x229ba94 native_encode_rtx(machine_mode, rtx_def*, vec<unsigned char, va_heap,
vl_ptr>&, unsigned int, unsigned int)
???:0
0x229f19a simplify_context::simplify_subreg(machine_mode, rtx_def*,
machine_mode, poly_int<1u, unsigned long>)
???:0
0x17a7d9c simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u,
unsigned long>)
???:0
/compiler/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/17.0.0/cc1 -quiet
-imultiarch x86_64-linux-gnu small.c -quiet -dumpbase small.c -dumpbase-ext .c
-mtune=generic -march=x86-64 -O3 -o /tmp/cclKuYoL.s
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.