mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-11 04:49:29 +08:00
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:
parent
f60e5a2065
commit
42663bf194
@ -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>
|
2009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
|
||||||
|
|
||||||
* config/sh/sh.md (stuff_delay_slot): Move const_int pattern
|
* config/sh/sh.md (stuff_delay_slot): Move const_int pattern
|
||||||
|
@ -6889,8 +6889,6 @@ label:
|
|||||||
"TARGET_SHMEDIA"
|
"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 tmp = gen_reg_rtx (SImode);
|
||||||
rtx cmp;
|
rtx cmp;
|
||||||
if (GET_CODE (operands[0]) == NE)
|
if (GET_CODE (operands[0]) == NE)
|
||||||
@ -6900,13 +6898,12 @@ label:
|
|||||||
operands[1], operands[2]);
|
operands[1], operands[2]);
|
||||||
|
|
||||||
emit_insn (gen_cstore4_media (tmp, cmp, 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]))
|
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
|
else
|
||||||
operands[0] = gen_rtx_EQ (VOIDmode, tmp_di, const0_rtx);
|
operands[0] = gen_rtx_EQ (VOIDmode, tmp, const0_rtx);
|
||||||
operands[1] = tmp_di;
|
operands[1] = tmp;
|
||||||
operands[2] = const0_rtx;
|
operands[2] = const0_rtx;
|
||||||
operands[3] = gen_rtx_LABEL_REF (Pmode, operands[3]);
|
operands[3] = gen_rtx_LABEL_REF (Pmode, operands[3]);
|
||||||
}")
|
}")
|
||||||
|
Loading…
Reference in New Issue
Block a user