Bill Wendling 4e018f4c22 From Hacker's Delight:
"For signed integers, the determination of overflow of x*y is not so simple. If
x and y have the same sign, then overflow occurs iff xy > 2**31 - 1. If they
have opposite signs, then overflow occurs iff xy < -2**31."

In this case, x == -1.

llvm-svn: 60278
2008-11-30 05:01:05 +00:00
..
2008-11-21 20:00:59 +00:00
2008-11-30 05:01:05 +00:00
2008-11-27 08:39:18 +00:00