sh.md (cbranchfp4_media): Remove hack extending cstore result to DImode.

2009-10-28  Paolo Bonzini  <bonzini@gnu.org>

	* config/sh/sh.md (cbranchfp4_media): Remove hack extending
	cstore result to DImode.

From-SVN: r153646
This commit is contained in:
Paolo Bonzini 2009-10-28 09:49:58 +00:00 committed by Paolo Bonzini
parent f60e5a2065
commit 42663bf194
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
* config/sh/sh.md (cbranchfp4_media): Remove hack extending
cstore result to DImode.
2009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.md (stuff_delay_slot): Move const_int pattern

View File

@ -6889,8 +6889,6 @@ label:
"TARGET_SHMEDIA"
"
{
/* hack to generate same code. */
rtx tmp_di = GET_CODE (operands[0]) == UNORDERED ? NULL : gen_reg_rtx (DImode);
rtx tmp = gen_reg_rtx (SImode);
rtx cmp;
if (GET_CODE (operands[0]) == NE)
@ -6900,13 +6898,12 @@ label:
operands[1], operands[2]);
emit_insn (gen_cstore4_media (tmp, cmp, operands[1], operands[2]));
if (tmp_di) emit_insn (gen_extendsidi2 (tmp_di, tmp)); else tmp_di = tmp;
if (GET_CODE (cmp) == GET_CODE (operands[0]))
operands[0] = gen_rtx_NE (VOIDmode, tmp_di, const0_rtx);
operands[0] = gen_rtx_NE (VOIDmode, tmp, const0_rtx);
else
operands[0] = gen_rtx_EQ (VOIDmode, tmp_di, const0_rtx);
operands[1] = tmp_di;
operands[0] = gen_rtx_EQ (VOIDmode, tmp, const0_rtx);
operands[1] = tmp;
operands[2] = const0_rtx;
operands[3] = gen_rtx_LABEL_REF (Pmode, operands[3]);
}")