aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2009-10-28 09:49:58 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2009-10-28 09:49:58 +0000
commit42663bf1945195d1ead30d226010badbdb009bdb (patch)
treeaefcdeae4b748654c9c6666db1f53cc875522252 /gcc
parentf60e5a206541c5cf811823d55c3811e55d6fc889 (diff)
downloadgcc-42663bf1945195d1ead30d226010badbdb009bdb.zip
gcc-42663bf1945195d1ead30d226010badbdb009bdb.tar.gz
gcc-42663bf1945195d1ead30d226010badbdb009bdb.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sh/sh.md9
2 files changed, 8 insertions, 6 deletions
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 <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
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]);
}")