https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127494
Bug ID: 127494
Summary: [17 Regression] parse_machine_mode change causing
RISC-V regressions
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: law at gcc dot gnu.org
Target Milestone: ---
This change:
commit 3b99fd4bdc7005333b0c760630f5db6ceeb81e5a
Author: Alfie Richards <[email protected]>
Date: Wed Sep 16 11:26:54 2026 +0000
machmode: Add parse_machine_mode function
Use function to replace manual machine_mode parsing.
gcc/ChangeLog:
* machmode.h (parse_machine_mode): New function.
* read-rtl.cc (find_mode): Use parse_machine_mode.
* config/riscv/riscv-v.cc (autovectorize_vector_modes): Likewise.
gcc/c-family/ChangeLog:
* c-attribs.cc (handle_mode_attribute): Use parse_machine_mode.
Is causing a testsuite regression. riscv32-elf & riscv64-elf are the easiest
places to reproduce.
Tests that now fail, but worked before (1 tests):
unix/-march=rv64gc_zba_zbb_zbs_zicond: gcc:
gcc.target/riscv/rvv/autovec/pr122445.c -O3 -ftree-vectorize scan-rtl-dump
avlprop "Propagating AVL: \\(const_int 8"
I haven't dug into this yet.