diff options
author | Nick Clifton <nickc@redhat.com> | 2010-04-22 14:28:16 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2010-04-22 14:28:16 +0000 |
commit | d5f4a5273337b6f8ab94b0cecf925e53d369aeb1 (patch) | |
tree | 3a254e6eaa7e3a1d59edcf024167d9f56d0a76b3 /gcc/config/stormy16 | |
parent | 44741f0366ebdda432a4399a92a40dbb1beabb01 (diff) | |
download | gcc-d5f4a5273337b6f8ab94b0cecf925e53d369aeb1.zip gcc-d5f4a5273337b6f8ab94b0cecf925e53d369aeb1.tar.gz gcc-d5f4a5273337b6f8ab94b0cecf925e53d369aeb1.tar.bz2 |
* config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
From-SVN: r158646
Diffstat (limited to 'gcc/config/stormy16')
-rw-r--r-- | gcc/config/stormy16/stormy16-lib2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/stormy16/stormy16-lib2.c b/gcc/config/stormy16/stormy16-lib2.c index b8f957e9..edf8635 100644 --- a/gcc/config/stormy16/stormy16-lib2.c +++ b/gcc/config/stormy16/stormy16-lib2.c @@ -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); } |