Commit 0589e07d by Uros Bizjak

i386.c (ix86_expand_fp_compare): Use const0_rtx instead of GEN_INT (0x00) and…

i386.c (ix86_expand_fp_compare): Use const0_rtx instead of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).

	* config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
	of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
	(ix86_split_ashl): Ditto.
	(ix86_expand_vector_init_one_nonzero): Ditto.
	(ix86_expand_vector_set): Ditto.
	(ix86_expand_reduc_v4sf): Ditto.

From-SVN: r150355
parent f698757b
2009-08-02 Paolo Bonzini <bonzini@gnu.org 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
(ix86_split_ashl): Ditto.
(ix86_expand_vector_init_one_nonzero): Ditto.
(ix86_expand_vector_set): Ditto.
(ix86_expand_reduc_v4sf): Ditto.
2009-08-02 Paolo Bonzini <bonzini@gnu.org>
* explow.c (promote_function_mode): Remove assert. * explow.c (promote_function_mode): Remove assert.
* config/sh/sh.c (sh_promote_function_mode): Declare. * config/sh/sh.c (sh_promote_function_mode): Declare.
...@@ -109,8 +118,8 @@ ...@@ -109,8 +118,8 @@
(TARGET_PROMOTE_FUNCTION_ARGS): Remove. (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
* config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move... * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
* config/arm/arm.c (arm_promote_function_mode): ... here, without complex * config/arm/arm.c (arm_promote_function_mode): ... here, without
type handling. complex type handling.
(TARGET_PROMOTE_FUNCTION_MODE): Define. (TARGET_PROMOTE_FUNCTION_MODE): Define.
(TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove. (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
......
...@@ -14814,13 +14814,13 @@ ix86_expand_fp_compare (enum rtx_code code, rtx op0, rtx op1, rtx scratch) ...@@ -14814,13 +14814,13 @@ ix86_expand_fp_compare (enum rtx_code code, rtx op0, rtx op1, rtx scratch)
if (code == LT && TARGET_IEEE_FP) if (code == LT && TARGET_IEEE_FP)
{ {
emit_insn (gen_andqi_ext_0 (scratch, scratch, GEN_INT (0x45))); emit_insn (gen_andqi_ext_0 (scratch, scratch, GEN_INT (0x45)));
emit_insn (gen_cmpqi_ext_3 (scratch, GEN_INT (0x01))); emit_insn (gen_cmpqi_ext_3 (scratch, const1_rtx));
intcmp_mode = CCmode; intcmp_mode = CCmode;
code = EQ; code = EQ;
} }
else else
{ {
emit_insn (gen_testqi_ext_ccno_0 (scratch, GEN_INT (0x01))); emit_insn (gen_testqi_ext_ccno_0 (scratch, const1_rtx));
code = NE; code = NE;
} }
break; break;
...@@ -14834,8 +14834,7 @@ ix86_expand_fp_compare (enum rtx_code code, rtx op0, rtx op1, rtx scratch) ...@@ -14834,8 +14834,7 @@ ix86_expand_fp_compare (enum rtx_code code, rtx op0, rtx op1, rtx scratch)
else else
{ {
emit_insn (gen_andqi_ext_0 (scratch, scratch, GEN_INT (0x45))); emit_insn (gen_andqi_ext_0 (scratch, scratch, GEN_INT (0x45)));
emit_insn (gen_xorqi_cc_ext_1 (scratch, scratch, emit_insn (gen_xorqi_cc_ext_1 (scratch, scratch, const1_rtx));
GEN_INT (0x01)));
code = NE; code = NE;
} }
break; break;
...@@ -14868,7 +14867,6 @@ ix86_expand_fp_compare (enum rtx_code code, rtx op0, rtx op1, rtx scratch) ...@@ -14868,7 +14867,6 @@ ix86_expand_fp_compare (enum rtx_code code, rtx op0, rtx op1, rtx scratch)
{ {
emit_insn (gen_testqi_ext_ccno_0 (scratch, GEN_INT (0x40))); emit_insn (gen_testqi_ext_ccno_0 (scratch, GEN_INT (0x40)));
code = NE; code = NE;
break;
} }
break; break;
case NE: case NE:
...@@ -17028,14 +17026,15 @@ ix86_split_ashl (rtx *operands, rtx scratch, enum machine_mode mode) ...@@ -17028,14 +17026,15 @@ ix86_split_ashl (rtx *operands, rtx scratch, enum machine_mode mode)
emit_insn ((mode == DImode emit_insn ((mode == DImode
? gen_lshrsi3 ? gen_lshrsi3
: gen_lshrdi3) (high[0], high[0], GEN_INT (mode == DImode ? 5 : 6))); : gen_lshrdi3) (high[0], high[0],
GEN_INT (mode == DImode ? 5 : 6)));
emit_insn ((mode == DImode emit_insn ((mode == DImode
? gen_andsi3 ? gen_andsi3
: gen_anddi3) (high[0], high[0], GEN_INT (1))); : gen_anddi3) (high[0], high[0], const1_rtx));
emit_move_insn (low[0], high[0]); emit_move_insn (low[0], high[0]);
emit_insn ((mode == DImode emit_insn ((mode == DImode
? gen_xorsi3 ? gen_xorsi3
: gen_xordi3) (low[0], low[0], GEN_INT (1))); : gen_xordi3) (low[0], low[0], const1_rtx));
} }
emit_insn ((mode == DImode emit_insn ((mode == DImode
...@@ -28105,7 +28104,7 @@ ix86_expand_vector_init_one_nonzero (bool mmx_ok, enum machine_mode mode, ...@@ -28105,7 +28104,7 @@ ix86_expand_vector_init_one_nonzero (bool mmx_ok, enum machine_mode mode,
if (mode != V4SFmode && TARGET_SSE2) if (mode != V4SFmode && TARGET_SSE2)
{ {
emit_insn (gen_sse2_pshufd_1 (new_target, new_target, emit_insn (gen_sse2_pshufd_1 (new_target, new_target,
GEN_INT (1), const1_rtx,
GEN_INT (one_var == 1 ? 0 : 1), GEN_INT (one_var == 1 ? 0 : 1),
GEN_INT (one_var == 2 ? 0 : 1), GEN_INT (one_var == 2 ? 0 : 1),
GEN_INT (one_var == 3 ? 0 : 1))); GEN_INT (one_var == 3 ? 0 : 1)));
...@@ -28125,7 +28124,7 @@ ix86_expand_vector_init_one_nonzero (bool mmx_ok, enum machine_mode mode, ...@@ -28125,7 +28124,7 @@ ix86_expand_vector_init_one_nonzero (bool mmx_ok, enum machine_mode mode,
tmp = new_target; tmp = new_target;
emit_insn (gen_sse_shufps_v4sf (tmp, tmp, tmp, emit_insn (gen_sse_shufps_v4sf (tmp, tmp, tmp,
GEN_INT (1), const1_rtx,
GEN_INT (one_var == 1 ? 0 : 1), GEN_INT (one_var == 1 ? 0 : 1),
GEN_INT (one_var == 2 ? 0+4 : 1+4), GEN_INT (one_var == 2 ? 0+4 : 1+4),
GEN_INT (one_var == 3 ? 0+4 : 1+4))); GEN_INT (one_var == 3 ? 0+4 : 1+4)));
...@@ -28788,8 +28787,8 @@ ix86_expand_vector_set (bool mmx_ok, rtx target, rtx val, int elt) ...@@ -28788,8 +28787,8 @@ ix86_expand_vector_set (bool mmx_ok, rtx target, rtx val, int elt)
ix86_expand_vector_set (false, target, val, 0); ix86_expand_vector_set (false, target, val, 0);
/* target = A X C D */ /* target = A X C D */
emit_insn (gen_sse_shufps_v4sf (target, target, tmp, emit_insn (gen_sse_shufps_v4sf (target, target, tmp,
GEN_INT (1), GEN_INT (0), const1_rtx, const0_rtx,
GEN_INT (2+4), GEN_INT (3+4))); GEN_INT (2+4), GEN_INT (3+4)));
return; return;
case 2: case 2:
...@@ -28799,8 +28798,8 @@ ix86_expand_vector_set (bool mmx_ok, rtx target, rtx val, int elt) ...@@ -28799,8 +28798,8 @@ ix86_expand_vector_set (bool mmx_ok, rtx target, rtx val, int elt)
ix86_expand_vector_set (false, tmp, val, 0); ix86_expand_vector_set (false, tmp, val, 0);
/* target = A B X D */ /* target = A B X D */
emit_insn (gen_sse_shufps_v4sf (target, target, tmp, emit_insn (gen_sse_shufps_v4sf (target, target, tmp,
GEN_INT (0), GEN_INT (1), const0_rtx, const1_rtx,
GEN_INT (0+4), GEN_INT (3+4))); GEN_INT (0+4), GEN_INT (3+4)));
return; return;
case 3: case 3:
...@@ -28810,8 +28809,8 @@ ix86_expand_vector_set (bool mmx_ok, rtx target, rtx val, int elt) ...@@ -28810,8 +28809,8 @@ ix86_expand_vector_set (bool mmx_ok, rtx target, rtx val, int elt)
ix86_expand_vector_set (false, tmp, val, 0); ix86_expand_vector_set (false, tmp, val, 0);
/* target = A B X D */ /* target = A B X D */
emit_insn (gen_sse_shufps_v4sf (target, target, tmp, emit_insn (gen_sse_shufps_v4sf (target, target, tmp,
GEN_INT (0), GEN_INT (1), const0_rtx, const1_rtx,
GEN_INT (2+4), GEN_INT (0+4))); GEN_INT (2+4), GEN_INT (0+4)));
return; return;
default: default:
...@@ -29104,8 +29103,8 @@ ix86_expand_reduc_v4sf (rtx (*fn) (rtx, rtx, rtx), rtx dest, rtx in) ...@@ -29104,8 +29103,8 @@ ix86_expand_reduc_v4sf (rtx (*fn) (rtx, rtx, rtx), rtx dest, rtx in)
emit_insn (fn (tmp2, tmp1, in)); emit_insn (fn (tmp2, tmp1, in));
emit_insn (gen_sse_shufps_v4sf (tmp3, tmp2, tmp2, emit_insn (gen_sse_shufps_v4sf (tmp3, tmp2, tmp2,
GEN_INT (1), GEN_INT (1), const1_rtx, const1_rtx,
GEN_INT (1+4), GEN_INT (1+4))); GEN_INT (1+4), GEN_INT (1+4)));
emit_insn (fn (dest, tmp2, tmp3)); emit_insn (fn (dest, tmp2, tmp3));
} }
......
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