[Bug target/122481] [16 Regression] RISC-V rv64gcv: crash at -O2 during RTL pass: expand
xxs_chy at outlook dot com
gcc-bugzilla@gcc.gnu.org
Wed Oct 29 15:52:11 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122481
--- Comment #1 from XChy <xxs_chy at outlook dot com> ---
Sorry, the original testcase contains a non-std header from csmith.
Updated testcase:
#include "stdint.h"
uint16_t g_30, g_65;
uint16_t *g_54;
uint32_t func_59(uint32_t);
int32_t func_1() {
for (; g_30 != 7; ++g_30)
func_59(0);
}
uint32_t func_59(uint32_t p_60) {
for (; g_65; ++g_65)
for (p_60 = 0; p_60 <= 50; p_60 = p_60 + 2) {
uint16_t **l_77 = &g_54;
if (g_30)
*l_77 = 0;
}
}
More information about the Gcc-bugs
mailing list