public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/14063] New: conditional around vec_dss() call disappears at -O2
@ 2004-02-07 15:38 leblanc at skycomputers dot com
  2004-02-07 17:26 ` [Bug optimization/14063] " leblanc at skycomputers dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: leblanc at skycomputers dot com @ 2004-02-07 15:38 UTC (permalink / raw)
  To: gcc-bugs

The problem does NOT occur at lower optimization levels.

Configured with:
    ../gnu-tool-chain/gcc/configure
    --with-cpu=7450
    --enable-altivec
    --enable-shared
    --enable-threads=posix
    --enable-languages=c,c++
    --disable-checking
    --with-system-zlib
    --enable-__cxa_atexit
    --host=ppc-sky-linux
    --target=ppc-sky-linux
    --prefix=/usr/local

Thread model: posix

Source mike.c:
#include <altivec.h>
void dstt_bug(int i, int j, char *mem)
{
    if (i == 0)
        vec_dss(1);
}

Command line:
    gcc mike.c -S -O2 -maltivec

No messages; mike.s shows bug:
        .file   "mike.c"
        .section        ".text"
        .align 2
        .globl dstt_bug
        .type   dstt_bug, @function
dstt_bug:
        stwu 1,-16(1)
        dss 1
        addi 1,1,16
        blr
        .size   dstt_bug, .-dstt_bug
        .ident  "GCC: (GNU) 3.3"

mike.i:
# 1 "mike.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "mike.c"
# 1 "/usr/local/lib/gcc-lib/ppc-sky-linux/3.3/include/altivec.h" 1 3 4
# 52 "/usr/local/lib/gcc-lib/ppc-sky-linux/3.3/include/altivec.h" 3 4
extern int __altivec_link_error_invalid_argument ();
# 2 "mike.c" 2
void dstt_bug(int i, int j, char *mem)
{
    if (i == 0)
        __builtin_altivec_dss ((1));
}

-- 
           Summary: conditional around vec_dss() call disappears at -O2
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: leblanc at skycomputers dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: ppc-sky-linux
GCC target triplet: ppc-sky-linux


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


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

end of thread, other threads:[~2004-05-11 14:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-07 15:38 [Bug optimization/14063] New: conditional around vec_dss() call disappears at -O2 leblanc at skycomputers dot com
2004-02-07 17:26 ` [Bug optimization/14063] " leblanc at skycomputers dot com
2004-02-07 17:54 ` pinskia at gcc dot gnu dot org
2004-02-08 14:30 ` leblanc at skycomputers dot com
2004-02-08 16:24 ` leblanc at skycomputers dot com
2004-02-08 20:10 ` [Bug target/14063] " pinskia at gcc dot gnu dot org
2004-05-11 16:07 ` pinskia at gcc dot gnu dot org
2004-05-12  6:08 ` cvs-commit at gcc dot gnu dot org
2004-05-12  6:12 ` pinskia at gcc dot gnu dot org
2004-05-12  8:05 ` leblanc at skycomputers dot com

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