Commit d2032ad8 by Andrew Pinski Committed by Andrew Pinski

reg-stack.c (nan): Rename to ...

2004-05-19  Andrew Pinski  <pinskia@physics.uc.edu>

        * reg-stack.c (nan): Rename to ...
        (not_a_num): Here.
        (reg_to_stack): Rename nan to not_a_num.
        (subst_stack_regs_pat): Likewise.
        (convert_regs_entry): Likewise.
        (convert_regs_1): Likewise.

From-SVN: r82039
parent a6845d13
2004-05-19 Andrew Pinski <pinskia@physics.uc.edu> 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu>
* reg-stack.c (nan): Rename to ...
(not_a_num): Here.
(reg_to_stack): Rename nan to not_a_num.
(subst_stack_regs_pat): Likewise.
(convert_regs_entry): Likewise.
(convert_regs_1): Likewise.
* tree-cfg.c (find_case_label_for_value): Replace call to * tree-cfg.c (find_case_label_for_value): Replace call to
simple_cst_equal with tree_int_cst_equal. simple_cst_equal with tree_int_cst_equal.
......
...@@ -232,7 +232,7 @@ static rtx ...@@ -232,7 +232,7 @@ static rtx
(FP_mode_reg[(regno)-FIRST_STACK_REG][(int) (mode)]) (FP_mode_reg[(regno)-FIRST_STACK_REG][(int) (mode)])
/* Used to initialize uninitialized registers. */ /* Used to initialize uninitialized registers. */
static rtx nan; static rtx not_a_num;
/* Forward declarations */ /* Forward declarations */
...@@ -472,11 +472,11 @@ reg_to_stack (FILE *file) ...@@ -472,11 +472,11 @@ reg_to_stack (FILE *file)
on zero, which we can get from `ldz'. */ on zero, which we can get from `ldz'. */
if (flag_pic) if (flag_pic)
nan = CONST0_RTX (SFmode); not_a_num = CONST0_RTX (SFmode);
else else
{ {
nan = gen_lowpart (SFmode, GEN_INT (0x7fc00000)); not_a_num = gen_lowpart (SFmode, GEN_INT (0x7fc00000));
nan = force_const_mem (SFmode, nan); not_a_num = force_const_mem (SFmode, not_a_num);
} }
/* Allocate a cache for stack_regs_mentioned. */ /* Allocate a cache for stack_regs_mentioned. */
...@@ -1499,7 +1499,7 @@ subst_stack_regs_pat (rtx insn, stack regstack, rtx pat) ...@@ -1499,7 +1499,7 @@ subst_stack_regs_pat (rtx insn, stack regstack, rtx pat)
{ {
pat = gen_rtx_SET (VOIDmode, pat = gen_rtx_SET (VOIDmode,
FP_MODE_REG (REGNO (*dest), SFmode), FP_MODE_REG (REGNO (*dest), SFmode),
nan); not_a_num);
PATTERN (insn) = pat; PATTERN (insn) = pat;
control_flow_insn_deleted |= move_for_stack_reg (insn, regstack, pat); control_flow_insn_deleted |= move_for_stack_reg (insn, regstack, pat);
} }
...@@ -1508,7 +1508,7 @@ subst_stack_regs_pat (rtx insn, stack regstack, rtx pat) ...@@ -1508,7 +1508,7 @@ subst_stack_regs_pat (rtx insn, stack regstack, rtx pat)
{ {
pat = gen_rtx_SET (VOIDmode, pat = gen_rtx_SET (VOIDmode,
FP_MODE_REG (REGNO (*dest) + 1, SFmode), FP_MODE_REG (REGNO (*dest) + 1, SFmode),
nan); not_a_num);
PATTERN (insn) = pat; PATTERN (insn) = pat;
control_flow_insn_deleted |= move_for_stack_reg (insn, regstack, pat); control_flow_insn_deleted |= move_for_stack_reg (insn, regstack, pat);
} }
...@@ -2597,7 +2597,7 @@ convert_regs_entry (void) ...@@ -2597,7 +2597,7 @@ convert_regs_entry (void)
init = gen_rtx_SET (VOIDmode, init = gen_rtx_SET (VOIDmode,
FP_MODE_REG (FIRST_STACK_REG, SFmode), FP_MODE_REG (FIRST_STACK_REG, SFmode),
nan); not_a_num);
insert_insn_on_edge (init, e); insert_insn_on_edge (init, e);
inserted = 1; inserted = 1;
} }
...@@ -2915,7 +2915,7 @@ convert_regs_1 (FILE *file, basic_block block) ...@@ -2915,7 +2915,7 @@ convert_regs_1 (FILE *file, basic_block block)
} }
set = gen_rtx_SET (VOIDmode, FP_MODE_REG (reg, SFmode), set = gen_rtx_SET (VOIDmode, FP_MODE_REG (reg, SFmode),
nan); not_a_num);
insn = emit_insn_after (set, insn); insn = emit_insn_after (set, insn);
control_flow_insn_deleted |= subst_stack_regs (insn, &regstack); control_flow_insn_deleted |= subst_stack_regs (insn, &regstack);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment