(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
+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
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);
}