public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/116595] New: default-initialization of vfloat32m1x4_t causes ICE
@ 2024-09-04 5:31 pinskia at gcc dot gnu.org
2024-09-04 5:35 ` [Bug c++/116595] default-initialization of vfloat32m1x4_t (RISCV V) or svfloat32x4_t (Armv9-a SVE) " pinskia at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-09-04 5:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116595
Bug ID: 116595
Summary: default-initialization of vfloat32m1x4_t causes ICE
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Target: riscv
Take this C++:
```
#include <riscv_vector.h>
void transpose4x4_ps()
{
vfloat32m1x4_t _r = vfloat32m1x4_t();
}
```
This ICEs with:
<source>: In function 'void transpose4x4_ps()':
<source>:6:20: internal compiler error: in to_constant, at poly-int.h:592
6 | vfloat32m1x4_t _r = vfloat32m1x4_t();
| ^~
I am not sure this is valid or not.
It also ICEs with clang.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/116595] default-initialization of vfloat32m1x4_t (RISCV V) or svfloat32x4_t (Armv9-a SVE) causes ICE
2024-09-04 5:31 [Bug target/116595] New: default-initialization of vfloat32m1x4_t causes ICE pinskia at gcc dot gnu.org
@ 2024-09-04 5:35 ` pinskia at gcc dot gnu.org
2024-09-04 6:05 ` kito at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-09-04 5:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116595
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|default-initialization of |default-initialization of
|vfloat32m1x4_t causes ICE |vfloat32m1x4_t (RISCV V) or
| |svfloat32x4_t (Armv9-a SVE)
| |causes ICE
Component|target |c++
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The same ICE happens with SVE:
```
#include <arm_sve.h>
void transpose4x4_ps()
{
svfloat32x4_t _r = svfloat32x4_t();
}
```
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/116595] default-initialization of vfloat32m1x4_t (RISCV V) or svfloat32x4_t (Armv9-a SVE) causes ICE
2024-09-04 5:31 [Bug target/116595] New: default-initialization of vfloat32m1x4_t causes ICE pinskia at gcc dot gnu.org
2024-09-04 5:35 ` [Bug c++/116595] default-initialization of vfloat32m1x4_t (RISCV V) or svfloat32x4_t (Armv9-a SVE) " pinskia at gcc dot gnu.org
@ 2024-09-04 6:05 ` kito at gcc dot gnu.org
2024-09-04 6:07 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: kito at gcc dot gnu.org @ 2024-09-04 6:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116595
--- Comment #2 from Kito Cheng <kito at gcc dot gnu.org> ---
Hmmm, it's not well defined in the rvv intrinsic doc, but I suppose this should
at least work (compile-able) without crash, also it seems works fine on GCC 14
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/116595] default-initialization of vfloat32m1x4_t (RISCV V) or svfloat32x4_t (Armv9-a SVE) causes ICE
2024-09-04 5:31 [Bug target/116595] New: default-initialization of vfloat32m1x4_t causes ICE pinskia at gcc dot gnu.org
2024-09-04 5:35 ` [Bug c++/116595] default-initialization of vfloat32m1x4_t (RISCV V) or svfloat32x4_t (Armv9-a SVE) " pinskia at gcc dot gnu.org
2024-09-04 6:05 ` kito at gcc dot gnu.org
@ 2024-09-04 6:07 ` pinskia at gcc dot gnu.org
2024-09-04 6:09 ` pinskia at gcc dot gnu.org
2024-09-04 6:30 ` kito at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-09-04 6:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116595
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Kito Cheng from comment #2)
> Hmmm, it's not well defined in the rvv intrinsic doc, but I suppose this
> should at least work (compile-able) without crash, also it seems works fine
> on GCC 14
It might be a checking assert I didn't check.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/116595] default-initialization of vfloat32m1x4_t (RISCV V) or svfloat32x4_t (Armv9-a SVE) causes ICE
2024-09-04 5:31 [Bug target/116595] New: default-initialization of vfloat32m1x4_t causes ICE pinskia at gcc dot gnu.org
` (2 preceding siblings ...)
2024-09-04 6:07 ` pinskia at gcc dot gnu.org
@ 2024-09-04 6:09 ` pinskia at gcc dot gnu.org
2024-09-04 6:30 ` kito at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-09-04 6:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116595
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes it is a checking assert:
gcc_checking_assert (is_constant ());
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/116595] default-initialization of vfloat32m1x4_t (RISCV V) or svfloat32x4_t (Armv9-a SVE) causes ICE
2024-09-04 5:31 [Bug target/116595] New: default-initialization of vfloat32m1x4_t causes ICE pinskia at gcc dot gnu.org
` (3 preceding siblings ...)
2024-09-04 6:09 ` pinskia at gcc dot gnu.org
@ 2024-09-04 6:30 ` kito at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: kito at gcc dot gnu.org @ 2024-09-04 6:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116595
--- Comment #5 from Kito Cheng <kito at gcc dot gnu.org> ---
GCC 14 with enable checking will trigger that as well, thanks for remind that
detail, I forgot trunk will enable checking by default but release branch isn't
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-09-04 6:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-04 5:31 [Bug target/116595] New: default-initialization of vfloat32m1x4_t causes ICE pinskia at gcc dot gnu.org
2024-09-04 5:35 ` [Bug c++/116595] default-initialization of vfloat32m1x4_t (RISCV V) or svfloat32x4_t (Armv9-a SVE) " pinskia at gcc dot gnu.org
2024-09-04 6:05 ` kito at gcc dot gnu.org
2024-09-04 6:07 ` pinskia at gcc dot gnu.org
2024-09-04 6:09 ` pinskia at gcc dot gnu.org
2024-09-04 6:30 ` kito at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).