From: Uros Bizjak Date: Fri, 22 Oct 2010 15:15:16 +0000 (+0200) Subject: re PR target/45946 (ICE: in extract_insn, at recog.c:2127 when using _Decimal128... X-Git-Tag: releases/gcc-4.3.6~307 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bec3b936cf77329002cf071973b1c0709c674650;p=thirdparty%2Fgcc.git re PR target/45946 (ICE: in extract_insn, at recog.c:2127 when using _Decimal128 with -Os -fno-omit-frame-pointer) PR target/45946 * config/i386/i386.md (*pushti2): New insn pattern. (pushti2 splitter): New insn splitter. testsuite/ChangLog: PR target/45946 * gcc.target/i386/pr45946.c: New test. Co-Authored-By: H.J. Lu From-SVN: r165836 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d027c552aa60..6b5b2d9b4195 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-10-22 Uros Bizjak + + PR target/45946 + * config/i386/i386.md (*pushti2): New insn pattern. + (pushti2 splitter): New insn splitter. + 2010-10-09 John David Anglin PR target/45820 diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index a523bc9923f6..3522658bc555 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -2372,6 +2372,12 @@ DONE; }) +(define_insn "*pushti" + [(set (match_operand:TI 0 "push_operand" "=<") + (match_operand:TI 1 "general_no_elim_operand" "riF*m"))] + "TARGET_64BIT" + "#") + (define_insn "*movti_internal" [(set (match_operand:TI 0 "nonimmediate_operand" "=x,x,m") (match_operand:TI 1 "vector_move_operand" "C,xm,x"))] @@ -2450,6 +2456,14 @@ (const_string "TI"))] (const_string "DI")))]) +(define_split + [(set (match_operand:TI 0 "push_operand" "") + (match_operand:TI 1 "general_operand" ""))] + "TARGET_64BIT && reload_completed + && !SSE_REG_P (operands[1])" + [(const_int 0)] + "ix86_split_long_move (operands); DONE;") + (define_split [(set (match_operand:TI 0 "nonimmediate_operand" "") (match_operand:TI 1 "general_operand" ""))] diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8ab1e45fcb28..85d0aca3866f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-10-22 Uros Bizjak + H.J. Lu + + PR target/45946 + * gcc.target/i386/pr45946.c: New test. + 2010-09-18 Richard Guenther PR tree-optimization/45709 diff --git a/gcc/testsuite/gcc.target/i386/pr45946.c b/gcc/testsuite/gcc.target/i386/pr45946.c new file mode 100644 index 000000000000..81cd36026adb --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr45946.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target dfp } */ +/* { dg-options "-std=gnu99 -Os -fno-omit-frame-pointer" } */ + +void +__attribute__((noinline)) +bar (_Decimal128, _Decimal128, _Decimal128, _Decimal128, _Decimal128, + _Decimal128, _Decimal128, _Decimal128, _Decimal128); + +void +foo (void) +{ + bar (0, 0, 0, 0, 0, 0, 0, 0, 0); +}