]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
spe.md (spe_fix_truncsfsi2): Delete.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 24 Feb 2004 22:59:03 +0000 (22:59 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Tue, 24 Feb 2004 22:59:03 +0000 (22:59 +0000)
2004-02-24  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
        (spe_fixuns_truncsfsi2): Delete.

        * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
        (fixuns_truncsfsi2): Delete.

From-SVN: r78396

gcc/ChangeLog
gcc/config/rs6000/rs6000.md
gcc/config/rs6000/spe.md

index 0cdd56bed6bcb0febd3aaee673ec740af5161f4c..8657351619b33077f29e2f664c87ca240649cba1 100644 (file)
@@ -1,3 +1,11 @@
+2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
+
+        * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
+        (spe_fixuns_truncsfsi2): Delete.
+
+        * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
+        (fixuns_truncsfsi2): Delete.
+
 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
 
        PR/14240
index af0d781d148bf882c35772da32c95fcfc26365e1..b49a0acbc8a4361257365a4398877830dcc77a23 100644 (file)
   "fsel %0,%1,%2,%3"
   [(set_attr "type" "fp")])
 \f
-;; Conversions to and from floating-point.
-
-(define_expand "fixuns_truncsfsi2"
-  [(set (match_operand:SI 0 "gpc_reg_operand" "")
-       (unsigned_fix:SI (match_operand:SF 1 "gpc_reg_operand" "")))]
-  "TARGET_HARD_FLOAT && !TARGET_FPRS"
-  "")
-
-(define_expand "fix_truncsfsi2"
-  [(set (match_operand:SI 0 "gpc_reg_operand" "")
-       (fix:SI (match_operand:SF 1 "gpc_reg_operand" "")))]
-  "TARGET_HARD_FLOAT && !TARGET_FPRS"
-  "")
-
 ; For each of these conversions, there is a define_expand, a define_insn
 ; with a '#' template, and a define_split (with C code).  The idea is
 ; to allow constant folding with the template of the define_insn,
index d4a8896f300b5fc1a37c144b2649e224a1aeb16d..07ee09871989d5edee8d672061a1a758e0f57634 100644 (file)
   "efsctuiz %0,%1"
   [(set_attr "type" "fp")])
 
-(define_insn "spe_fixuns_truncsfsi2"
-  [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
-       (unsigned_fix:SI (match_operand:SF 1 "gpc_reg_operand" "r")))]
-  "TARGET_HARD_FLOAT && !TARGET_FPRS"
-  "efsctui %0,%1"
-  [(set_attr "type" "fp")])
-
-(define_insn "spe_fix_truncsfsi2"
-  [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
-       (fix:SI (match_operand:SF 1 "gpc_reg_operand" "r")))]
-  "TARGET_HARD_FLOAT && !TARGET_FPRS"
-  "efsctsi %0,%1"
-  [(set_attr "type" "fp")])
+; These instructions aren't IEEE compliant.  They get some corner cases
+; wrong.  Don't enable them!
+;(define_insn "spe_fixuns_truncsfsi2"
+;  [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
+;      (unsigned_fix:SI (match_operand:SF 1 "gpc_reg_operand" "r")))]
+;  "TARGET_HARD_FLOAT && !TARGET_FPRS"
+;  "efsctui %0,%1"
+;  [(set_attr "type" "fp")])
+;
+;(define_insn "spe_fix_truncsfsi2"
+;  [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
+;      (fix:SI (match_operand:SF 1 "gpc_reg_operand" "r")))]
+;  "TARGET_HARD_FLOAT && !TARGET_FPRS"
+;  "efsctsi %0,%1"
+;  [(set_attr "type" "fp")])
 
 (define_insn "spe_floatunssisf2"
   [(set (match_operand:SF 0 "gpc_reg_operand" "=r")