From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21153 invoked by alias); 11 Jun 2002 18:46:08 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 21119 invoked by uid 71); 11 Jun 2002 18:46:04 -0000 Resent-Date: 11 Jun 2002 18:46:04 -0000 Resent-Message-ID: <20020611184604.21118.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, hp@axis.com Received: (qmail 15801 invoked by uid 61); 11 Jun 2002 18:38:07 -0000 Message-Id: <20020611183807.15799.qmail@sources.redhat.com> Date: Tue, 11 Jun 2002 11:46:00 -0000 From: hp@axis.com Reply-To: hp@axis.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/6997: CRIS: compare result incorrect -- sleu pattern in cris.md at fault X-SW-Source: 2002-06/txt/msg00251.txt.bz2 List-Id: >Number: 6997 >Category: target >Synopsis: CRIS: compare result incorrect -- sleu pattern in cris.md at fault >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Tue Jun 11 11:46:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Internal report at Axis >Release: gcc-3.1, supposedly also repeatable on the main trunk >Organization: >Environment: cris-axis-elf (actually any CRIS target). >Description: Incorrect insn used; beq should be bls after first sls insn since sls does not set condition codes. >How-To-Repeat: Compile at -O3. >Fix: Add (set_attr "cc" "none") to sleu pattern as with the other sCC patterns. Patch forthcoming. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="20020611-1.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="20020611-1.c" LyogUFIgdGFyZ2V0L05OLiAgTWlzc2luZyAoc2V0X2F0dHIgImNjIiAibm9uZSIpIGluIHNsZXUg cGF0dGVybiBpbgogICBjcmlzLm1kLiAgVGVzdGNhc2UgZnJvbSBocEBheGlzLmNvbS4gICovCgpp bnQgcDsKaW50IGs7CnVuc2lnbmVkIGludCBuOwoKdm9pZCB4ICgpCnsKICB1bnNpZ25lZCBpbnQg aDsKCiAgaCA9IG4gPD0gMzA7CiAgaWYgKGgpCiAgICBwID0gMTsKICBlbHNlCiAgICBwID0gMDsK CiAgaWYgKGgpCiAgICBrID0gMTsKICBlbHNlCiAgICBrID0gMDsKfQoKdW5zaWduZWQgaW50IG4g PSAzMDsKCm1haW4gKCkKewogIHggKCk7CiAgaWYgKHAgIT0gMSB8fCBrICE9IDEpCiAgICBhYm9y dCAoKTsKICBleGl0ICgwKTsKfQo=