[Bug target/121510] internal compiler error: in emit_vec_extract, at config/riscv/riscv-v.cc:5651

2025-09-08 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121510

Robin Dapp  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Robin Dapp  ---
Fixed.

[Bug target/121510] internal compiler error: in emit_vec_extract, at config/riscv/riscv-v.cc:5651

2025-09-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121510

--- Comment #8 from GCC Commits  ---
The releases/gcc-15 branch has been updated by Robin Dapp :

https://gcc.gnu.org/g:1c824f038848870219105a5fa16c48a2e0746643

commit r15-10297-g1c824f038848870219105a5fa16c48a2e0746643
Author: Robin Dapp 
Date:   Fri Sep 5 09:35:46 2025 +0200

RISC-V: Check if we can vec_extract [PR121510].

For Zvfhmin a vector mode exists but the corresponding vec_extract does
not.  This patch checks that a vec_extract is available and otherwise
falls back to standard handling.

PR target/121510

gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_legitimize_move): Check if we can
vec_extract.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/pr121510.c: New test.

(cherry picked from commit a6bf07653cd272add46a2218ec141c95d7f02427)

[Bug target/121510] internal compiler error: in emit_vec_extract, at config/riscv/riscv-v.cc:5651

2025-09-06 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121510

Matthias Klose  changed:

   What|Removed |Added

 CC||doko at gcc dot gnu.org

--- Comment #7 from Matthias Klose  ---
please could you backport the fix to the gcc-15 branch?

[Bug target/121510] internal compiler error: in emit_vec_extract, at config/riscv/riscv-v.cc:5651

2025-09-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121510

--- Comment #6 from GCC Commits  ---
The master branch has been updated by Robin Dapp :

https://gcc.gnu.org/g:a6bf07653cd272add46a2218ec141c95d7f02427

commit r16-3607-ga6bf07653cd272add46a2218ec141c95d7f02427
Author: Robin Dapp 
Date:   Fri Sep 5 09:35:46 2025 +0200

RISC-V: Check if we can vec_extract [PR121510].

For Zvfhmin a vector mode exists but the corresponding vec_extract does
not.  This patch checks that a vec_extract is available and otherwise
falls back to standard handling.

PR target/121510

gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_legitimize_move): Check if we can
vec_extract.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/pr121510.c: New test.

[Bug target/121510] internal compiler error: in emit_vec_extract, at config/riscv/riscv-v.cc:5651

2025-09-05 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121510

--- Comment #5 from Robin Dapp  ---
Reduced example:

long *print_bfloat_block;
void ftoastr(float);
void print_bfloat() {
  for (;;) {
long j;
union {
  _Float16 x;
  char b[]
} u;
j = 0;
for (; j < sizeof 0; j++)
  u.b[j] = print_bfloat_block[j];
ftoastr(u.x);
  }
}

[Bug target/121510] internal compiler error: in emit_vec_extract, at config/riscv/riscv-v.cc:5651

2025-09-05 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121510

Robin Dapp  changed:

   What|Removed |Added

 Status|WAITING |NEW
 CC||rdapp at gcc dot gnu.org

--- Comment #4 from Robin Dapp  ---
This happens because we try to extract from a HFmode vector but only have
Zvfhmin.  I think a simple check for vec_extract should be sufficient.

The issue is also present for 16.  Testing a patch.

[Bug target/121510] internal compiler error: in emit_vec_extract, at config/riscv/riscv-v.cc:5651

2025-09-04 Thread vhaudiquet343 at hotmail dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121510

Valentin HAUDIQUET  changed:

   What|Removed |Added

 CC||vhaudiquet343 at hotmail dot fr

--- Comment #3 from Valentin HAUDIQUET  ---
Created attachment 62305
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62305&action=edit
preprocessed source

Hello, here is the preprocessed source.

[Bug target/121510] internal compiler error: in emit_vec_extract, at config/riscv/riscv-v.cc:5651

2025-08-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121510

Andrew Pinski  changed:

   What|Removed |Added

   Last reconfirmed||2025-08-11
 Status|UNCONFIRMED |WAITING
 Ever confirmed|0   |1
   Keywords||needs-source

--- Comment #2 from Andrew Pinski  ---
Can you attach the preprocessed source as requested by
https://gcc.gnu.org/bugs/ ?

[Bug target/121510] internal compiler error: in emit_vec_extract, at config/riscv/riscv-v.cc:5651

2025-08-11 Thread xypron.glpk at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121510

--- Comment #1 from Heinrich Schuchardt  ---
https://launchpadlibrarian.net/810305660/buildlog_ubuntu-questing-riscv64.coreutils_9.5-1ubuntu2_BUILDING.txt.gz