Commit d5f4a527 by Nick Clifton Committed by Nick Clifton

* config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.

From-SVN: r158646
parent 44741f03
2010-04-22 Nick Clifton <nickc@redhat.com>
* config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
2010-04-22 Alexander Monakov <amonakov@ispras.ru>
* tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
......
......@@ -318,13 +318,13 @@ __ffshi2 (UHWtype u)
word_type
__ucmpsi2 (USItype a, USItype b)
{
word_type hi_a = (a << 16);
word_type hi_b = (b << 16);
word_type hi_a = (a >> 16);
word_type hi_b = (b >> 16);
if (hi_a == hi_b)
{
word_type low_a = (a & 0xff);
word_type low_b = (b & 0xff);
word_type low_a = (a & 0xffff);
word_type low_b = (b & 0xffff);
return low_a < low_b ? 0 : (low_a > low_b ? 2 : 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment