This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/42891] [4.5 Regression] ice in extract_insn, at recog.c:2097



------- Comment #3 from ubizjak at gmail dot com  2010-01-28 12:33 -------
This regression was introduced by me in

2009-11-24  Uros Bizjak  <ubizjak@gmail.com>

        ...
        (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
        ...

Following revert fixes this PR:

Index: i386.c
===================================================================
--- i386.c      (revision 156311)
+++ i386.c      (working copy)
@@ -15463,11 +15463,10 @@ ix86_expand_int_movcc (rtx operands[])
                tmp = gen_reg_rtx (mode);

              if (mode == DImode)
-               insn = gen_x86_movdicc_0_m1;
+               emit_insn (gen_x86_movdicc_0_m1 (tmp, flags, compare_op));
              else
-               insn = gen_x86_movsicc_0_m1;
-
-             emit_insn (insn (tmp, flags, compare_op));
+               emit_insn (gen_x86_movsicc_0_m1
+                          (gen_lowpart (SImode, tmp), flags, compare_op));
            }
          else
            {


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42891


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]