From 42663bf1945195d1ead30d226010badbdb009bdb Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 28 Oct 2009 09:49:58 +0000 Subject: sh.md (cbranchfp4_media): Remove hack extending cstore result to DImode. 2009-10-28 Paolo Bonzini * config/sh/sh.md (cbranchfp4_media): Remove hack extending cstore result to DImode. From-SVN: r153646 --- gcc/ChangeLog | 5 +++++ gcc/config/sh/sh.md | 9 +++------ 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4022869..3312ddf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-10-28 Paolo Bonzini + + * config/sh/sh.md (cbranchfp4_media): Remove hack extending + cstore result to DImode. + 2009-10-28 Kaz Kojima * config/sh/sh.md (stuff_delay_slot): Move const_int pattern diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 7fa63ea..7fa6347 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -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]); }") -- cgit v1.1