public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112698] New: gcc-14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3
@ 2023-11-24 10:07 clyon at gcc dot gnu.org
2023-11-24 10:11 ` [Bug target/112698] " clyon at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: clyon at gcc dot gnu.org @ 2023-11-24 10:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112698
Bug ID: 112698
Summary: gcc-14-5617-gb8592186611 introduces regressions in
bfloat16_vector_typecheck_1.c for cortex-m0 and
cortex-m3
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: clyon at gcc dot gnu.org
Reporter: clyon at gcc dot gnu.org
Target Milestone: ---
Target: arm-eabi
Commit g:b8592186611b671d6dc47332ecaf4a4b9c3802fb introduced regressions on
arm-eabi as follows:
* for cortex-m0:
Running gcc:gcc.target/arm/arm.exp ...
FAIL: gcc.target/arm/bfloat16_vector_typecheck_1.c (test for errors, line 122)
FAIL: gcc.target/arm/bfloat16_vector_typecheck_1.c (test for errors, line 124)
FAIL: gcc.target/arm/bfloat16_vector_typecheck_1.c (test for excess errors)
FAIL: gcc.target/arm/bfloat16_vector_typecheck_2.c (test for errors, line 114)
FAIL: gcc.target/arm/bfloat16_vector_typecheck_2.c (test for excess errors)
* for cortex-m3:
Running gcc:gcc.target/arm/arm.exp ...
FAIL: gcc.target/arm/bfloat16_vector_typecheck_1.c (test for errors, line 122)
FAIL: gcc.target/arm/bfloat16_vector_typecheck_1.c (test for errors, line 124)
FAIL: gcc.target/arm/bfloat16_vector_typecheck_1.c (test for excess errors)
FAIL: gcc.target/arm/bfloat16_vector_typecheck_2.c (test for errors, line 114)
FAIL: gcc.target/arm/bfloat16_vector_typecheck_2.c (test for excess errors)
Running libstdc++:libstdc++-dg/conformance.exp ...
FAIL: experimental/simd/pr109261_constexpr_simd.cc -mfpu=neon
-mfloat-abi=softfp -march=armv7-a -ffast-math -O2 -Wno-psabi (test for excess
errors)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/112698] gcc-14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3
2023-11-24 10:07 [Bug target/112698] New: gcc-14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3 clyon at gcc dot gnu.org
@ 2023-11-24 10:11 ` clyon at gcc dot gnu.org
2023-11-30 15:31 ` [Bug target/112698] gcc r14-5617-gb8592186611 " cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: clyon at gcc dot gnu.org @ 2023-11-24 10:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112698
--- Comment #1 from Christophe Lyon <clyon at gcc dot gnu.org> ---
For gcc.target/arm/bfloat16_vector_typecheck* tests, the log says:
FAIL: gcc.target/arm/bfloat16_vector_typecheck_1.c (test for excess errors)
Excess errors:
bfloat16_vector_typecheck_1.c:122:17: error: incompatible types when
initializing type 'long int' using type 'bfloat16x4_t'
bfloat16_vector_typecheck_1.c:124:17: error: incompatible types when
initializing type 'long int' using type 'bfloat16x4_t'
FAIL: gcc.target/arm/bfloat16_vector_typecheck_2.c (test for excess errors)
Excess errors:
bfloat16_vector_typecheck_2.c:114:17: error: incompatible types when
initializing type 'long int' using type 'bfloat16x8_t'
For experimental/simd/pr109261_constexpr_simd.cc, the log says:
FAIL: experimental/simd/pr109261_constexpr_simd.cc -mfpu=neon
-mfloat-abi=softfp -march=armv7-a -ffast-math -O2 -Wno-psabi (test for excess
errors)
Excess errors:
simd_neon.h:332: error: cannot convert '__vector(2) int' to 'int32x2_t'
simd_neon.h:332: error: cannot convert '__vector(2) int' to 'int32x2_t'
simd_neon.h:497: error: cannot convert '__vector(2) int' to 'int32x2_t' in
initialization
simd_neon.h:497: error: cannot convert '__vector(2) int' to 'int32x2_t' in
initialization
simd_neon.h:497: error: cannot convert '__vector(2) int' to 'int32x2_t' in
initialization
simd_neon.h:497: error: cannot convert '__vector(2) int' to 'int32x2_t' in
initialization
simd_neon.h:497: error: cannot convert '__vector(2) int' to 'int32x2_t' in
initialization
simd_neon.h:497: error: cannot convert '__vector(2) int' to 'int32x2_t' in
initialization
simd_neon.h:497: error: cannot convert '__vector(2) int' to 'int32x2_t' in
initialization
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/112698] gcc r14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3
2023-11-24 10:07 [Bug target/112698] New: gcc-14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3 clyon at gcc dot gnu.org
2023-11-24 10:11 ` [Bug target/112698] " clyon at gcc dot gnu.org
@ 2023-11-30 15:31 ` cvs-commit at gcc dot gnu.org
2023-11-30 15:33 ` clyon at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-30 15:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112698
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Christophe Lyon <clyon@gcc.gnu.org>:
https://gcc.gnu.org/g:d77d2dd9bdea7b8963db2a0a06ca481458ef2c98
commit r14-6018-gd77d2dd9bdea7b8963db2a0a06ca481458ef2c98
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date: Thu Nov 30 10:10:24 2023 +0000
testsuite/arm: Fix bfloat16_vector_typecheck_[12].c tests [PR 112698]
After commit r14-5617-gb8592186611, int32x[24]_t types now use
elements of 'long int' type instead of 'int' on arm-eabi (it's still
'int' on arm-linux-gnueabihf). Both are 32-bit types anyway.
This patch adjust the two tests so that they optionnally accept 'long '
before 'int' in the expected error message.
2023-11-30 Christophe Lyon <christophe.lyon@linaro.org>
PR target/112698
gcc/testsuite/
* gcc.target/arm/bfloat16_vector_typecheck_1.c: Update expected
error message.
* gcc.target/arm/bfloat16_vector_typecheck_2.c: Likewise.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/112698] gcc r14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3
2023-11-24 10:07 [Bug target/112698] New: gcc-14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3 clyon at gcc dot gnu.org
2023-11-24 10:11 ` [Bug target/112698] " clyon at gcc dot gnu.org
2023-11-30 15:31 ` [Bug target/112698] gcc r14-5617-gb8592186611 " cvs-commit at gcc dot gnu.org
@ 2023-11-30 15:33 ` clyon at gcc dot gnu.org
2023-11-30 16:12 ` clyon at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: clyon at gcc dot gnu.org @ 2023-11-30 15:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112698
Christophe Lyon <clyon at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2023-11-30
--- Comment #3 from Christophe Lyon <clyon at gcc dot gnu.org> ---
gcc.target/arm/bfloat16_vector_typecheck_[12].c testcases fixed.
There's still a problem with experimental/simd/pr109261_constexpr_simd.cc,
which may involve a change to simd_neon.h or simd.h
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/112698] gcc r14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3
2023-11-24 10:07 [Bug target/112698] New: gcc-14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3 clyon at gcc dot gnu.org
` (2 preceding siblings ...)
2023-11-30 15:33 ` clyon at gcc dot gnu.org
@ 2023-11-30 16:12 ` clyon at gcc dot gnu.org
2023-11-30 21:27 ` mkretz at gcc dot gnu.org
2023-12-01 9:36 ` clyon at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: clyon at gcc dot gnu.org @ 2023-11-30 16:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112698
--- Comment #4 from Christophe Lyon <clyon at gcc dot gnu.org> ---
@mkretz, this commit may also be of interest for some more context:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=d12d2aa4fccc76a9a08c8120c5e37d9cab8683e8
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/112698] gcc r14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3
2023-11-24 10:07 [Bug target/112698] New: gcc-14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3 clyon at gcc dot gnu.org
` (3 preceding siblings ...)
2023-11-30 16:12 ` clyon at gcc dot gnu.org
@ 2023-11-30 21:27 ` mkretz at gcc dot gnu.org
2023-12-01 9:36 ` clyon at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: mkretz at gcc dot gnu.org @ 2023-11-30 21:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112698
--- Comment #5 from Matthias Kretz (Vir) <mkretz at gcc dot gnu.org> ---
OK, I can follow that reasoning. It's still a breaking change for everyone that
was using int up to this point. I guess the argument is that using int was
wrong in the first place and it just happened to work by chance. The right type
to use would have been int32_t instead of int. However, if I use int32_t for
interacting with NEON intrinsics, will this work everywhere (older GCC, Clang,
etc.)? Or is the only portable solution decltype(int32x2t()[0])?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/112698] gcc r14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3
2023-11-24 10:07 [Bug target/112698] New: gcc-14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3 clyon at gcc dot gnu.org
` (4 preceding siblings ...)
2023-11-30 21:27 ` mkretz at gcc dot gnu.org
@ 2023-12-01 9:36 ` clyon at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: clyon at gcc dot gnu.org @ 2023-12-01 9:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112698
Christophe Lyon <clyon at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktkachov at gcc dot gnu.org,
| |rearnsha at gcc dot gnu.org,
| |rsandifo at gcc dot gnu.org
--- Comment #6 from Christophe Lyon <clyon at gcc dot gnu.org> ---
adding maintainers who might provide larger context wrt compatibility with
other compilers.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-12-01 9:36 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-24 10:07 [Bug target/112698] New: gcc-14-5617-gb8592186611 introduces regressions in bfloat16_vector_typecheck_1.c for cortex-m0 and cortex-m3 clyon at gcc dot gnu.org
2023-11-24 10:11 ` [Bug target/112698] " clyon at gcc dot gnu.org
2023-11-30 15:31 ` [Bug target/112698] gcc r14-5617-gb8592186611 " cvs-commit at gcc dot gnu.org
2023-11-30 15:33 ` clyon at gcc dot gnu.org
2023-11-30 16:12 ` clyon at gcc dot gnu.org
2023-11-30 21:27 ` mkretz at gcc dot gnu.org
2023-12-01 9:36 ` clyon 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).