From bfc982c64a2c1ab538bf8dc61d590df40bd73374 Mon Sep 17 00:00:00 2001 From: nickc Date: Thu, 22 Apr 2010 11:05:12 +0000 Subject: [PATCH] * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter. * config/stormy16/stormy16.h: Tidy up formatting. (DONT_USE_BUILTIN_SETJMP): Remove definition. * config/stormy16/stormy16.c (cbranchsi4): Delete pattern. (ineqbranchsi): Delete pattern. * config/stormy16/stormy16-lib2-ucmpsi2.c: New file. * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function. * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add stormy16-lib2-ucmpsi2.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158640 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 14 ++++++++++++++ gcc/config/stormy16/stormy16-lib2.c | 8 ++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ed504a902c..a992fbbafc4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,17 @@ +2010-04-22 Nick Clifton + + * config/stormy16/stormy16.c + (xstormy16_asm_output_aligned_common): Handle a NULL decl + parameter. + * config/stormy16/stormy16.h: Tidy up formatting. + (DONT_USE_BUILTIN_SETJMP): Remove definition. + * config/stormy16/stormy16.c (cbranchsi4): Delete pattern. + (ineqbranchsi): Delete pattern. + * config/stormy16/stormy16-lib2-ucmpsi2.c: New file. + * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function. + * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add + stormy16-lib2-ucmpsi2.c. + 2010-04-22 Bernd Schmidt * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and diff --git a/gcc/config/stormy16/stormy16-lib2.c b/gcc/config/stormy16/stormy16-lib2.c index edf8635e192..b8f957e915c 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 & 0xffff); - word_type low_b = (b & 0xffff); + word_type low_a = (a & 0xff); + word_type low_b = (b & 0xff); return low_a < low_b ? 0 : (low_a > low_b ? 2 : 1); } -- 2.11.0