PR63442 libgcc_cmp_return_mode not always return word_mode
authorJiong Wang <jiong.wang@arm.com>
Mon, 27 Oct 2014 21:58:59 +0000 (21:58 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Mon, 27 Oct 2014 21:58:59 +0000 (21:58 +0000)
gcc/
  PR target/63442
  * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".

From-SVN: r216765

gcc/ChangeLog
gcc/optabs.c

index 19931d5b6237dab3e1a00a6edf21435361365202..9645ddae1c30d9d76ab5a5e3df6082e6eac428f9 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-27  Jiong Wang <jiong.wang@arm.com>
+
+       PR target/63442
+       * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
+
 2014-10-27  DJ Delorie  <dj@redhat.com>
 
        * tree.c (build_common_tree_nodes): Don't even store the
index c3623eae15a98c0e0c8094b61f7af1ab47200272..677958f0ad9bbe54b770b734a85c5be01afc991f 100644 (file)
@@ -4294,7 +4294,7 @@ prepare_cmp_insn (rtx x, rtx y, enum rtx_code comparison, rtx size,
            y = const0_rtx;
        }
 
-      *pmode = word_mode;
+      *pmode = ret_mode;
       prepare_cmp_insn (x, y, comparison, NULL_RTX, unsignedp, methods,
                        ptest, pmode);
     }