public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17884] New: asm 'volatile' is not honored as documented
@ 2004-10-07 19:31 fjahanian at apple dot com
  2004-10-07 19:35 ` [Bug tree-optimization/17884] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (21 more replies)
  0 siblings, 22 replies; 24+ messages in thread
From: fjahanian at apple dot com @ 2004-10-07 19:31 UTC (permalink / raw)
  To: gcc-bugs

In the following test case compiled with -O1 the add instruction is found *outside* the protective
"mtfsf". 'volatile' keyword added to 'asm' was meant to prevent such cases. gcc-3.3 behaves
correctly. Is this a know problem? Is there a PR already for it?

double foo( )
{
        double sum;
        double fpenv;
        double DDD, FFF;

        sum = DDD + FFF;
        asm volatile("mtfsf 255,%0" : : "f" (fpenv));
        return sum;
}

_foo:
        mtfsf 255,f0
        fadd f1,f1,f0
        blr

-- 
           Summary: asm 'volatile' is not honored as documented
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fjahanian at apple dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.2.0
  GCC host triplet: powerpc-apple-darwin7.2.0
GCC target triplet: powerpc-apple-darwin7.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17884


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

end of thread, other threads:[~2005-10-01 19:48 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-07 19:31 [Bug tree-optimization/17884] New: asm 'volatile' is not honored as documented fjahanian at apple dot com
2004-10-07 19:35 ` [Bug tree-optimization/17884] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-07 20:02 ` amacleod at redhat dot com
2004-10-07 20:37 ` fjahanian at apple dot com
2004-10-07 21:51 ` fjahanian at apple dot com
2004-10-07 22:02 ` fjahanian at apple dot com
2004-10-08 14:35 ` amacleod at redhat dot com
2004-10-08 16:24 ` fjahanian at apple dot com
2004-10-08 18:27 ` dalej at apple dot com
2004-10-08 18:37 ` amacleod at redhat dot com
2004-10-08 18:45   ` Diego Novillo
2004-10-08 18:45 ` dnovillo at redhat dot com
2004-10-08 18:48 ` fjahanian at apple dot com
2004-10-08 18:53 ` amacleod at redhat dot com
2004-10-08 19:25 ` fjahanian at apple dot com
2004-10-08 19:28 ` pinskia at gcc dot gnu dot org
2004-10-08 19:41 ` fjahanian at apple dot com
2004-10-08 21:04 ` dalej at apple dot com
2004-10-12 17:39 ` [Bug tree-optimization/17884] " rth at gcc dot gnu dot org
2004-10-12 18:30 ` dalej at apple dot com
2005-01-14 21:34 ` das at FreeBSD dot ORG
2005-01-20  1:33 ` rth at gcc dot gnu dot org
2005-02-02  7:18 ` rth at gcc dot gnu dot org
2005-10-01 19:48 ` pinskia at gcc dot gnu dot org

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).