From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 641BC3858C78; Tue, 28 May 2024 03:42:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 641BC3858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716867754; bh=ZS8nrcsPrT5b7yq/I6E/FbxVIkhK7kh27KUn3o5RLAI=; h=From:To:Subject:Date:From; b=cXxlGn20mxSvxMn0hnob4glbcwN/GtxdM8xhl3o2Lt8o+LAaAu+ZcgnDP1qsf+RkA yzdm9IS18hyp6/zU39a5Encs6eYHn2lCcnIB4w9Aeq/EbB2ozExFfKZkKF0DjgLnOH mfIhBpU2xlPfmZFWS2QHanhE3eUtL7jWPM9J5rPo= From: "thiago.bauermann at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115253] New: New tests added by r14-10122-gad45086178d833 fail on Cortex M23 and M55 bare metal targets Date: Tue, 28 May 2024 03:42:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: thiago.bauermann at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115253 Bug ID: 115253 Summary: New tests added by r14-10122-gad45086178d833 fail on Cortex M23 and M55 bare metal targets Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: thiago.bauermann at linaro dot org Target Milestone: --- Commit g:ad45086178d833254d66fab518b14234418f002b, r14-10122-gad45086178d83= 3, introduces the tests gcc.target/arm/cmse/extend-param.c and gcc.target/arm/cmse/extend-return.c. They have the following failures on --with-cpu=3Dcortex-m23, --with-float= =3Dsoft, --target=3Darm-eabi (full configure flags further below): Running gcc:gcc.target/arm/cmse/cmse.exp ... FAIL: gcc.target/arm/cmse/extend-param.c -O0 check-function-bodies __acle_se_boolSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O0 check-function-bodies __acle_se_enumSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O0 check-function-bodies __acle_se_shortSignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O0 check-function-bodies __acle_se_shortUnsignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O0 check-function-bodies __acle_se_signSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O0 check-function-bodies __acle_se_unsignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O1 check-function-bodies __acle_se_boolSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O1 check-function-bodies __acle_se_enumSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O1 check-function-bodies __acle_se_shortSignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O1 check-function-bodies __acle_se_shortUnsignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O1 check-function-bodies __acle_se_signSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O1 check-function-bodies __acle_se_unsignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O2 check-function-bodies __acle_se_boolSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O2 check-function-bodies __acle_se_enumSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O2 check-function-bodies __acle_se_shortSignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O2 check-function-bodies __acle_se_shortUnsignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O2 check-function-bodies __acle_se_signSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O2 check-function-bodies __acle_se_unsignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O3 -g check-function-bodies __acle_se_boolSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O3 -g check-function-bodies __acle_se_enumSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O3 -g check-function-bodies __acle_se_shortSignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O3 -g check-function-bodies __acle_se_shortUnsignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O3 -g check-function-bodies __acle_se_signSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -O3 -g check-function-bodies __acle_se_unsignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -Os check-function-bodies __acle_se_boolSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -Os check-function-bodies __acle_se_enumSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -Os check-function-bodies __acle_se_shortSignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -Os check-function-bodies __acle_se_shortUnsignSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -Os check-function-bodies __acle_se_signSecureFunc FAIL: gcc.target/arm/cmse/extend-param.c -Os check-function-bodies __acle_se_unsignSecureFunc UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies boolNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies enumNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies shortSignNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies shortUnsignNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies signNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies unsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O0 (internal compiler error: in extract_insn, at recog.cc:2812) FAIL: gcc.target/arm/cmse/extend-return.c -O0 (test for excess errors) UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies boolNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies enumNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies shortSignNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies shortUnsignNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies signNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies unsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O1 (internal compiler error: in extract_insn, at recog.cc:2812) FAIL: gcc.target/arm/cmse/extend-return.c -O1 (test for excess errors) UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies boolNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies enumNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies shortSignNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies shortUnsignNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies signNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies unsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O2 (internal compiler error: in extract_insn, at recog.cc:2812) FAIL: gcc.target/arm/cmse/extend-return.c -O2 (test for excess errors) UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bod= ies boolNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bod= ies enumNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bod= ies shortSignNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bod= ies shortUnsignNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bod= ies signNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bod= ies unsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O3 -g (internal compiler error:= in extract_insn, at recog.cc:2812) FAIL: gcc.target/arm/cmse/extend-return.c -O3 -g (test for excess errors) UNRESOLVED: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies boolNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies enumNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies shortSignNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies shortUnsignNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies signNonsecure0 UNRESOLVED: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies unsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -Os (internal compiler error: in extract_insn, at recog.cc:2812) FAIL: gcc.target/arm/cmse/extend-return.c -Os (test for excess errors) And these failures on --with-arch=3Darmv8.1-m.main+mve.fp+fp.dp, --with-float=3Dhard, --target=3Darm-eabi (Cortex M55): Running gcc:gcc.target/arm/cmse/cmse.exp ... FAIL: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies boolNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies enumNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies shortSignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies shortUnsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies signNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O0 check-function-bodies unsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies boolNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies enumNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies shortSignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies shortUnsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies signNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O1 check-function-bodies unsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies boolNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies enumNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies shortSignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies shortUnsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies signNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O2 check-function-bodies unsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bodies boolNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bodies enumNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bodies shortSignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bodies shortUnsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bodies signNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -O3 -g check-function-bodies unsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies boolNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies enumNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies shortSignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies shortUnsignNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies signNonsecure0 FAIL: gcc.target/arm/cmse/extend-return.c -Os check-function-bodies unsignNonsecure0 Here's how to reproduce with a cross-compiler on x86_64-linux-gnu: For Cortex M23: # Create combined tree: $ mkdir /tmp/combined-tree-src $ cd ~/src/newlib-cygwin && find . -print | cpio -pdlm /tmp/combined-tree-s= rc $ cd ~/src/binutils-gdb && find . -print | cpio -pdlmu /tmp/combined-tree-s= rc $ cd ~/src/gcc && find . -print | cpio -pdlmu /tmp/combined-tree-src $ mkdir /tmp/build && cd /tmp/build $ /bin/bash /tmp/combined-tree-src/configure \ SHELL=3D/bin/bash \ --with-gnu-as \ --with-gnu-ld \ --disable-libmudflap \ --enable-lto \ --enable-shared \ --without-included-gettext \ --enable-nls \ --with-system-zlib \ --disable-sjlj-exceptions \ --enable-gnu-unique-object \ --enable-linker-build-id \ --disable-libstdcxx-pch \ --enable-c99 \ --enable-clocale=3Dgnu \ --enable-libstdcxx-debug \ --enable-long-long \ --with-cloog=3Dno \ --with-ppl=3Dno \ --with-isl=3Dno \ --enable-threads=3Dno \ --disable-multiarch \ --disable-multilib \ --with-mode=3Dthumb \ --with-cpu=3Dcortex-m23 \ --with-float=3Dsoft \ --with-headers=3Dyes \ --with-native-system-header-dir=3D/include \ --with-newlib \ --enable-checking=3Dyes \ --disable-bootstrap \ --disable-gdb \ --enable-languages=3Dc,c++,lto \ --prefix=3D/tmp/thumb-m23-soft-eabi \ --build=3Dx86_64-pc-linux-gnu \ --host=3Dx86_64-pc-linux-gnu \ --target=3Darm-eabi $ make check-c \ CFLAGS_FOR_BUILD=3D"-pipe" \ CXXFLAGS_FOR_BUILD=3D"-pipe" \ -j $(nproc) \ -w \ RUNTESTFLAGS=3Dgcc.target/arm/cmse/cmse.exp For Cortext M55 it's the same as above except with this configure command instead: $ /bin/bash /tmp/combined-tree-src/configure \ SHELL=3D/bin/bash \ --with-gnu-as \ --with-gnu-ld \ --disable-libmudflap \ --enable-lto \ --enable-shared \ --without-included-gettext \ --enable-nls \ --with-system-zlib \ --disable-sjlj-exceptions \ --enable-gnu-unique-object \ --enable-linker-build-id \ --disable-libstdcxx-pch \ --enable-c99 \ --enable-clocale=3Dgnu \ --enable-libstdcxx-debug \ --enable-long-long \ --with-cloog=3Dno \ --with-ppl=3Dno \ --with-isl=3Dno \ --enable-threads=3Dno \ --disable-multiarch \ --disable-multilib \ --with-mode=3Dthumb \ --with-arch=3Darmv8.1-m.main+mve.fp+fp.dp \ --with-float=3Dhard \ --with-headers=3Dyes \ --with-native-system-header-dir=3D/include \ --with-newlib \ --enable-checking=3Dyes \ --disable-bootstrap \ --disable-gdb \ --enable-languages=3Dc,c++,lto \ --prefix=3D/tmp/thumb-m55-hard-eabi \ --build=3Dx86_64-pc-linux-gnu \ --host=3Dx86_64-pc-linux-gnu \ --target=3Darm-eabi=