This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11599] gcc generates wrong code when predicate is used


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |optimization
  GCC build triplet|ia64-unknown-linux-gnu      |
   GCC host triplet|ia64-unknown-linux-gnu      |
 GCC target triplet|ia64-unknown-linux-gnu      |ia64-*-linux-gnu, powerpc-
                   |                            |apple-darwin6.6
            Summary|ia64: gcc generates wrong   |gcc generates wrong code
                   |code when predicate is used |when predicate is used


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-19 23:52 -------
Do not confirm your own bugs, please.  We like to use peer review.
It also happens on powerpc-apple-darwin6.6 so it looks like a generic bug:
_prefetch:
        dcbtst 0,r3
        blr

gcc -S -O -Wall -o - pr11599.c -v -maltivec, where pr11599.c contains:
void t(void *p, int s)
{
  if (s)
    __builtin_altivec_dst (p, 0, 0);
}
produces:
_t:
        li r0,0
        dst r3,r0,0
        blr
So very much a generic bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]