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 other/49942] Wrong code generated for -O2 with target s390 on Linux


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-08-02 09:28:32 UTC ---
Why do you think so?
slr; jnhe is what you get for e.g.
void bar (void);
int foo (int x, int y)
{
  int d = x - y;
  if (d == 0)
    bar ();
  return d;
}
        slr     %r12,%r3
        jnhe    .L2
(it jumps around bar (), so the jump happens if (d != 0)).  The same code for
s/int/unsigned/g.


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