Commit a361d426 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Prefer get_mode_one() over get_tarval_one().

[r27188]
parent 2b394316
......@@ -1610,7 +1610,7 @@ static void arm_init_fpa_immediate(void)
{
/* 0, 1, 2, 3, 4, 5, 10, or 0.5. */
fpa_imm[0][fpa_null] = get_tarval_null(mode_F);
fpa_imm[0][fpa_one] = get_tarval_one(mode_F);
fpa_imm[0][fpa_one] = get_mode_one(mode_F);
fpa_imm[0][fpa_two] = new_tarval_from_str("2", 1, mode_F);
fpa_imm[0][fpa_three] = new_tarval_from_str("3", 1, mode_F);
fpa_imm[0][fpa_four] = new_tarval_from_str("4", 1, mode_F);
......@@ -1619,7 +1619,7 @@ static void arm_init_fpa_immediate(void)
fpa_imm[0][fpa_half] = new_tarval_from_str("0.5", 3, mode_F);
fpa_imm[1][fpa_null] = get_tarval_null(mode_D);
fpa_imm[1][fpa_one] = get_tarval_one(mode_D);
fpa_imm[1][fpa_one] = get_mode_one(mode_D);
fpa_imm[1][fpa_two] = new_tarval_from_str("2", 1, mode_D);
fpa_imm[1][fpa_three] = new_tarval_from_str("3", 1, mode_D);
fpa_imm[1][fpa_four] = new_tarval_from_str("4", 1, mode_D);
......@@ -1628,7 +1628,7 @@ static void arm_init_fpa_immediate(void)
fpa_imm[1][fpa_half] = new_tarval_from_str("0.5", 3, mode_D);
fpa_imm[2][fpa_null] = get_tarval_null(mode_E);
fpa_imm[2][fpa_one] = get_tarval_one(mode_E);
fpa_imm[2][fpa_one] = get_mode_one(mode_E);
fpa_imm[2][fpa_two] = new_tarval_from_str("2", 1, mode_E);
fpa_imm[2][fpa_three] = new_tarval_from_str("3", 1, mode_E);
fpa_imm[2][fpa_four] = new_tarval_from_str("4", 1, mode_E);
......
......@@ -88,7 +88,7 @@ static ir_node *create_not(dbg_info *dbgi, ir_node *node)
{
ir_node *block = get_nodes_block(node);
ir_mode *mode = config.lowered_mode;
tarval *tv_one = get_tarval_one(mode);
tarval *tv_one = get_mode_one(mode);
ir_node *one = new_d_Const(dbgi, tv_one);
return new_rd_Eor(dbgi, block, node, one, mode);
......@@ -117,7 +117,7 @@ static ir_node *create_set(ir_node *node)
{
dbg_info *dbgi = get_irn_dbg_info(node);
ir_mode *mode = config.lowered_set_mode;
tarval *tv_one = get_tarval_one(mode);
tarval *tv_one = get_mode_one(mode);
ir_node *one = new_d_Const(dbgi, tv_one);
ir_node *block = get_nodes_block(node);
tarval *tv_zero = get_tarval_null(mode);
......@@ -332,7 +332,7 @@ synth_zero_one:
case iro_Const: {
tarval *tv = get_Const_tarval(node);
if (tv == get_tarval_b_true()) {
tarval *tv_one = get_tarval_one(mode);
tarval *tv_one = get_mode_one(mode);
res = new_d_Const(dbgi, tv_one);
} else if (tv == get_tarval_b_false()) {
tarval *tv_zero = get_tarval_null(mode);
......
Supports Markdown
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