From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67C943858D3C; Sun, 21 Jan 2024 01:07:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67C943858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705799266; bh=TyPVIG//G292E8uc1QI42K7PQ4HIK9V5fTOaZtD0j0M=; h=From:To:Subject:Date:From; b=UqKnrjBAMSTynEce5aqkMc4hyLfBBQMsSHn7BhZx4LW1xXHQPYp036nDDm4jT/99o aA1Hj52x41zJO6OuN0xuqTfkRlLAavmLhvwd6eGLWxPh8youOVIDdu0J9phmfpDHLt Sp1PMgIkB1y7IUAGMhpcLVJH9Nfmi/Tk+igytU4w= From: "thiago.bauermann at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113526] New: [14 Regression ARM] gcc.target/arm/asm-flag-1.c fails since gcc-14-7248-g76bc70387d9 Date: Sun, 21 Jan 2024 01:07:29 +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: 14.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 cc target_milestone cf_gcctarget attachments.created 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=3D113526 Bug ID: 113526 Summary: [14 Regression ARM] gcc.target/arm/asm-flag-1.c fails since gcc-14-7248-g76bc70387d9 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: thiago.bauermann at linaro dot org CC: vmakarov at redhat dot com Target Milestone: --- Target: arm-none-eabi Created attachment 57180 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57180&action=3Dedit gcc.log showing failures in gcc.target/arm/asm-flag-1.c After commit 76bc70387d93 ("[PR113354][LRA]: Fixing LRA failure on building MIPS GCC"), the following failures started appearing on --target=3Darm-none= -eabi: =3D=3D=3D gcc tests =3D=3D=3D Running gcc:gcc.target/arm/arm.exp ... FAIL: gcc.target/arm/asm-flag-1.c (test for excess errors) UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movcc UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movcs UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler moveq UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movge UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movgt UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movhi UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movle UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movls UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movmi UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movne UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movpl UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movvc UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movvs The test fails because GCC can't compile asm-flag-1.c anymore: spawn -ignore SIGHUP /tmp/arm-none-eabi/bin/arm-none-eabi-gcc /tmp/combined-tree-src/gcc/testsuite/gcc.target/arm/asm-flag-1.c -fdiagnostics-plain-output -O -ffat-lto-objects -fno-ident -S -o asm-flag-1= .s /tmp/combined-tree-src/gcc/testsuite/gcc.target/arm/asm-flag-1.c: In functi= on 'f': /tmp/combined-tree-src/gcc/testsuite/gcc.target/arm/asm-flag-1.c:12:3: erro= r: 'asm' operand has impossible constraints or there are not enough registers compiler exited with status 1 FAIL: gcc.target/arm/asm-flag-1.c (test for excess errors) Excess errors: /tmp/combined-tree-src/gcc/testsuite/gcc.target/arm/asm-flag-1.c:12:3: erro= r: 'asm' operand has impossible constraints or there are not enough registers gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movne gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler moveq gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movcs gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movcc gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movmi gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movpl gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movvs gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movvc gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movhi gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movls gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movge gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movls gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movgt gcc.target/arm/asm-flag-1.c: output file does not exist UNRESOLVED: gcc.target/arm/asm-flag-1.c scan-assembler movle I tested on today's trunk (commit 036623196777) and the failures are still present. I'm attaching the gcc.log file. Here's how to reproduce on an x86_64-linux machine: 1. First, create a combined tree: $ mkdir /tmp/combined-tree-src /tmp/combined-tree-build $ 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 2. Then build and install the cross GCC: $ cd /tmp/combined-tree-build $ /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-multilib \ --with-multilib-list=3Daprofile \ --enable-threads=3Dno \ --disable-multiarch \ --with-newlib \ --with-headers=3Dyes \ --with-native-system-header-dir=3D/include \ --enable-checking=3Dyes \ --disable-bootstrap \ --disable-source-highlight \ --enable-languages=3Dc,c++,lto \ --prefix=3D/tmp/arm-none-eabi \ --build=3Dx86_64-pc-linux-gnu \ --host=3Dx86_64-pc-linux-gnu \ --target=3Darm-none-eabi \ && exec make \ SHELL=3D/bin/bash \ -w \ "${make_jobs[@]}" \ LDFLAGS_FOR_TARGET=3D"--specs=3Drdimon.specs" \ CFLAGS_FOR_BUILD=3D"-pipe -g -O2" \ CXXFLAGS_FOR_BUILD=3D"-pipe -g -O2" \ LDFLAGS_FOR_BUILD=3D"-static-libgcc" \ MAKEINFOFLAGS=3D--force \ BUILD_INFO=3D"" \ MAKEINFO=3Decho \ && make install 3. Finally, use it to compile the problematic .c file: $ /tmp/arm-none-eabi/bin/arm-none-eabi-gcc /tmp/combined-tree-src/gcc/testsuite/gcc.target/arm/asm-flag-1.c -fdiagnostics-plain-output -O -ffat-lto-objects -fno-ident -S -o asm-flag-1= .s /tmp/combined-tree-src/gcc/testsuite/gcc.target/arm/asm-flag-1.c: In functi= on =E2=80=98f=E2=80=99: /tmp/combined-tree-src/gcc/testsuite/gcc.target/arm/asm-flag-1.c:12:3: erro= r: =E2=80=98asm=E2=80=99 operand has impossible constraints or there are not e= nough registers=