This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/49942] Wrong code generated for -O2 with target s390 on Linux
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Aug 2011 09:28:37 +0000
- Subject: [Bug other/49942] Wrong code generated for -O2 with target s390 on Linux
- Auto-submitted: auto-generated
- References: <bug-49942-4@http.gcc.gnu.org/bugzilla/>
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.