Bug 172117
Summary: | Incorrect code using vector types | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Hakon Bugge <hakon.bugge> | ||||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||||
Status: | CLOSED ERRATA | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 4.0 | CC: | aoliva, aostvold | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | ia64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | RHBA-2006-0509 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-08-10 21:28:48 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 181409 | ||||||||
Attachments: |
|
Description
Hakon Bugge
2005-10-31 17:05:40 UTC
Created attachment 120577 [details]
C source
Created attachment 122387 [details]
Patch that fixes the bug
The bug is in the way we open-code the vector addition. When we see code such
as:
tmp0 += some_vector;
we emit code that writes to the first element of tmp0 with a subreg. Since on
IA64 two floats fit in a word, the subreg has the effect of clobbering the
second element of the vector. Oops.
The attached patch makes sure we do not use such a subreg as the output of the
open-coded instruction if the output matches any of the inputs.
This code is not present in mainline any more, as the open-coding was all moved
to the tree level, so this patch is not going upstream unless people tell me
it's a good idea to get it into upstream 3.4 or so.
This issue is on Red Hat Engineering's list of planned work items for the upcoming Red Hat Enterprise Linux 4.4 release. Engineering resources have been assigned and barring unforeseen circumstances, Red Hat intends to include this item in the 4.4 release. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0509.html |