OSDN Git Service

* config/stormy16/stormy16.c
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Apr 2010 11:05:12 +0000 (11:05 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:34:59 +0000 (14:34 +0900)
        (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
gcc/config/stormy16/stormy16-lib2.c

index 5ed504a..a992fbb 100644 (file)
@@ -1,3 +1,17 @@
+2010-04-22  Nick Clifton  <nickc@redhat.com>
+
+       * 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  <bernds@codesourcery.com>
 
        * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
index edf8635..b8f957e 100644 (file)
@@ -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);
     }