diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-21 17:31:49 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-21 17:31:49 +0000 |
commit | dd009b87c953b31096ff5323da639a98c8451891 (patch) | |
tree | 6a1c2cda7269b89bc0633bb5a14ddd03e2eff844 /gcc/config/ia64/ia64.c | |
parent | da6f6776229bc93368d38372ef21ca0167be20b4 (diff) | |
download | gcc-dd009b87c953b31096ff5323da639a98c8451891.tar.gz |
* config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
for infq/huge_valq.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167009 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/ia64/ia64.c')
-rw-r--r-- | gcc/config/ia64/ia64.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index a657d4eafde..06258cb9136 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -10236,16 +10236,17 @@ ia64_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, case IA64_BUILTIN_INFQ: case IA64_BUILTIN_HUGE_VALQ: { + enum machine_mode target_mode = TYPE_MODE (TREE_TYPE (exp)); REAL_VALUE_TYPE inf; rtx tmp; real_inf (&inf); - tmp = CONST_DOUBLE_FROM_REAL_VALUE (inf, mode); + tmp = CONST_DOUBLE_FROM_REAL_VALUE (inf, target_mode); - tmp = validize_mem (force_const_mem (mode, tmp)); + tmp = validize_mem (force_const_mem (target_mode, tmp)); if (target == 0) - target = gen_reg_rtx (mode); + target = gen_reg_rtx (target_mode); emit_move_insn (target, tmp); return target; |