aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2008-07-03 20:57:11 +0200
committerUros Bizjak <uros@gcc.gnu.org>2008-07-03 20:57:11 +0200
commitdcde22ac512ea1f529ad173bb03be38d79fb0d18 (patch)
treec5a1a915eabc2d520c8e2d5dd97621bc25d52c92 /gcc/config/i386
parent9d7e5c4d3f033377b19c3865a5c4a336c8b1a7cb (diff)
downloadgcc-dcde22ac512ea1f529ad173bb03be38d79fb0d18.zip
gcc-dcde22ac512ea1f529ad173bb03be38d79fb0d18.tar.gz
gcc-dcde22ac512ea1f529ad173bb03be38d79fb0d18.tar.bz2
re PR target/36710 (FAIL: gcc.dg/torture/fp-int-convert-float128.c -Os (internal compiler error))
PR target/36710 * config/i386/i386.md (mode): Add TF to mode attribute. (*pushtf_sse): New insn pattern. (pushtf splitters): New splitters. testsuite/ChangeLog: PR target/36710 * gcc.target/i386/float128-2.c: New test. From-SVN: r137427
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/i386.md30
1 files changed, 29 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index c67cf46..6c06184 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -289,7 +289,7 @@
;; Main data type used by the insn
(define_attr "mode"
- "unknown,none,QI,HI,SI,DI,SF,DF,XF,TI,V4SF,V2DF,V2SF,V1DF"
+ "unknown,none,QI,HI,SI,DI,TI,SF,DF,XF,TF,V4SF,V2DF,V2SF,V1DF"
(const_string "unknown"))
;; The CPU unit operations uses.
@@ -3311,6 +3311,34 @@
(const_string "TI"))]
(const_string "DI")))])
+(define_insn "*pushtf_sse"
+ [(set (match_operand:TF 0 "push_operand" "=<,<,<")
+ (match_operand:TF 1 "general_no_elim_operand" "x,Fo,*r"))]
+ "TARGET_SSE2"
+{
+ /* This insn should be already split before reg-stack. */
+ gcc_unreachable ();
+}
+ [(set_attr "type" "multi")
+ (set_attr "unit" "sse,*,*")
+ (set_attr "mode" "TF,SI,SI")])
+
+(define_split
+ [(set (match_operand:TF 0 "push_operand" "")
+ (match_operand:TF 1 "general_operand" ""))]
+ "TARGET_SSE2 && reload_completed
+ && !SSE_REG_P (operands[1])"
+ [(const_int 0)]
+ "ix86_split_long_move (operands); DONE;")
+
+(define_split
+ [(set (match_operand:TF 0 "push_operand" "")
+ (match_operand:TF 1 "any_fp_register_operand" ""))]
+ "TARGET_SSE2"
+ [(set (reg:P SP_REG) (plus:P (reg:P SP_REG) (const_int -16)))
+ (set (mem:TF (reg:P SP_REG)) (match_dup 1))]
+ "")
+
(define_split
[(set (match_operand 0 "nonimmediate_operand" "")
(match_operand 1 "general_operand" ""))]