From: Andy Hutchinson Date: Wed, 4 Jun 2008 21:59:54 +0000 (+0000) Subject: re PR target/30243 ([avr] signbit() causes an internal compiler error) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=515e442a91225d15911552d61899a0a0b3ccec61;p=gcc.git re PR target/30243 ([avr] signbit() causes an internal compiler error) PR target/30243 * builtins.c (expand_builtin_signbit): Don't take lowpart when register is already smaller or equal to required mode. From-SVN: r136376 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 96de8a05690..d1930ad7cee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-06-04 Andy Hutchinson + + PR target/30243 + * builtins.c (expand_builtin_signbit): Don't take lowpart when + register is already smaller or equal to required mode. + 2008-06-04 Xinliang David Li * tree-call-cdce.c: New file. diff --git a/gcc/builtins.c b/gcc/builtins.c index 05eb6bbdd98..f2c6ed488af 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -5786,7 +5786,7 @@ expand_builtin_signbit (tree exp, rtx target) lo = 0; } - if (imode != rmode) + if (GET_MODE_SIZE (imode) > GET_MODE_SIZE (rmode)) temp = gen_lowpart (rmode, temp); temp = expand_binop (rmode, and_optab, temp, immed_double_const (lo, hi, rmode),