From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24637 invoked by alias); 20 Dec 2012 14:00:30 -0000 Received: (qmail 24264 invoked by uid 48); 20 Dec 2012 13:59:54 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug regression/55754] New: FAIL: gcc.target/arm/unsigned-extend-2.c scan-assembler ands Date: Thu, 20 Dec 2012 14:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: regression X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg01972.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55754 Bug #: 55754 Summary: FAIL: gcc.target/arm/unsigned-extend-2.c scan-assembler ands Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassigned@gcc.gnu.org ReportedBy: ktkachov@gcc.gnu.org CC: ramana.radhakrishnan@arm.com, richard.earnshaw@arm.com Target: arm-none-eabi FAIL: gcc.target/arm/unsigned-extend-2.c scan-assembler ands FAIL: gcc.target/arm/unsigned-extend-2.c scan-assembler-not uxtb FAIL: gcc.target/arm/unsigned-extend-2.c scan-assembler-not cmp Bisection shows r194608 introduces the FAILs. In particular the following snippet causes the test FAIL: /* If *op0 is (zero_extend:SI (subreg:QI (reg:SI) 0)) and comparing with const0_rtx, change it to (and:SI (reg:SI) (const_int 255)), to facilitate possible combining with a cmp into 'ands'. */ - if (mode == SImode + if (!op0_preserve_value + && mode == SImode && GET_CODE (*op0) == ZERO_EXTEND && GET_CODE (XEXP (*op0, 0)) == SUBREG && GET_MODE (XEXP (*op0, 0)) == QImode This change disables the transformation that the testcase is looking for. Thanks, Kyrill