From 4a46f0169fe5ac92390155edb5f95bcb88f861bd Mon Sep 17 00:00:00 2001 From: hutchinsonandy Date: Wed, 4 Jun 2008 21:59:54 +0000 Subject: [PATCH] PR target/30243 * builtins.c (expand_builtin_signbit): Don't take lowpart when register is already smaller or equal to required mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136376 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/builtins.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 96de8a0..d1930ad 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 05eb6bb..f2c6ed4 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), -- 2.7.4