From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 43DDB383E80E; Sat, 30 May 2020 22:09:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43DDB383E80E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590876584; bh=wPOZXlCMMGcaClgMVL8HkyvHxIKAfCM3gZSq+u2nSQA=; h=From:To:Subject:Date:From; b=DdwGwapwRWJV1sKEVdmbpiKeHDcXVmaLc7qBE0wqgpjUVu7Afl7ZaZfOg/MxeoZ0+ NBHYVfQtFcF6iF7Aw5t3Tz0KRDuiKI9v71wPaISxOIZVdQm9psrlWxNH+GN6n/zmTV G+xp9q9sYOT6MbjV0UXssxj42ZneI67geKbNviSE= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/95444] New: Incorrect constraints on length operand in cmpstrnqi patterns Date: Sat, 30 May 2020 22:09:44 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com 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 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2020 22:09:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95444 Bug ID: 95444 Summary: Incorrect constraints on length operand in cmpstrnqi patterns Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: crazylht at gmail dot com, hubicka at ucw dot cz, ubizj= ak at gmail dot com Target Milestone: --- Target: i386,x864-64 cmpstrnqi patterns has (define_insn "*cmpstrnqi_1" [(set (reg:CC FLAGS_REG) (if_then_else:CC (ne (match_operand:P 6 "register_operand" "2") (const_int 0)) (compare:CC (mem:BLK (match_operand:P 4 "register_operand" "0")) (mem:BLK (match_operand:P 5 "register_operand" "1"))) (const_int 0))) (use (match_operand:SI 3 "immediate_operand" "i")) (use (reg:CC FLAGS_REG)) (clobber (match_operand:P 0 "register_operand" "=3DS")) (clobber (match_operand:P 1 "register_operand" "=3DD")) (clobber (match_operand:P 2 "register_operand" "=3Dc"))] "=3Dc" is incorrect since the CX register is used for both input and output= .=