target/6997: CRIS: compare result incorrect -- sleu pattern in cris.md at fault
hp@axis.com
hp@axis.com
Tue Jun 11 14:26:00 GMT 2002
>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=
More information about the Gcc-bugs
mailing list