------- Comment #1 from anton at mips dot complang dot tuwien dot ac dot at  
2007-03-12 17:43 -------
Subject: Re:   New: -(x>y) generates wrong code

I cannot create an attachment in Bugzilla, so I'll just append the
test program here:

#include <stdio.h>
#include <limits.h>

long foo(long x, long y);

int main()
{
  printf("%d\n",foo(INT_MIN,INT_MAX));
  return 0;
}  

long foo(long x, long y)
{
  return -(x>y);
}


-- 


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

Reply via email to