public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/9757: Gcc should use swp instruction in ARM targets
@ 2003-02-20 12:13 rearnsha
  0 siblings, 0 replies; 2+ messages in thread
From: rearnsha @ 2003-02-20 12:13 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gertom, nobody

Synopsis: Gcc should use swp instruction in ARM targets

State-Changed-From-To: open->closed
State-Changed-By: rearnsha
State-Changed-When: Thu Feb 20 12:13:24 2003
State-Changed-Why:
    No, the SWP instruction should not be used.  For several reasons.
    
    1) It's very slow on some processors, since it forces an external bus access even if the data is already in the cache.
    2) It's behaviour is not defined if access is made to a MMU managed page that is non-cacheable/bufferable.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9757


^ permalink raw reply	[flat|nested] 2+ messages in thread

* target/9757: Gcc should use swp instruction in ARM targets
@ 2003-02-19 16:56 gertom
  0 siblings, 0 replies; 2+ messages in thread
From: gertom @ 2003-02-19 16:56 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 899 bytes --]


>Number:         9757
>Category:       target
>Synopsis:       Gcc should use swp instruction in ARM targets
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          pessimizes-code
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 19 16:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Tamás Gergely
>Release:        gcc version 3.3 20030210 (prerelease)
>Organization:
>Environment:
BUILD & HOST: Linux 2.4.20 i686 unknown
TARGET: arm-unknown-elf
>Description:
Swp instruction is not used at all in ARM target. Subsequent "LDR rA, [rB]; STR rC, [rB];" instructions could be done with one swp instruction: "SWP rA, rC, [rB]" if rA!=rC. The swp also works, and exchanges register and memory content, if rA=rC.
>How-To-Repeat:

>Fix:
arm.md should be extended?
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-20 12:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-20 12:13 target/9757: Gcc should use swp instruction in ARM targets rearnsha
  -- strict thread matches above, loose matches on Subject: below --
2003-02-19 16:56 gertom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).