Fix alpha-linux -mieee bug reported by H.J. Lu.
authorJim Wilson <wilson@cygnus.com>
Wed, 3 Sep 1997 01:27:01 +0000 (01:27 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 3 Sep 1997 01:27:01 +0000 (18:27 -0700)
* alpha.md (floatdisf2-1): New pattern.

From-SVN: r15045

gcc/ChangeLog
gcc/config/alpha/alpha.md

index 90c5ec6c7d60fa1b49a047c44464e654fe06e719..b1404eadc799fc42e4c5a87b52dea8dc6384ffb2 100644 (file)
@@ -1,3 +1,7 @@
+Tue Sep  2 18:09:39 1997  Jim Wilson  <wilson@cygnus.com>
+
+       * alpha.md (floatdisf2-1): New pattern.
+
 Tue Sep  2 18:41:55 1997  Jeffrey A Law  (law@cygnus.com)
 
        * mn10200.h (INITIALIZE_TRAMPOLINE): PC relative instructions
index a1d3b2bac17bbab88878920db22e1e8ce4364fd2..ce451839ad40d4dce53ffe534b3698f6e47254de 100644 (file)
   "cvt%-qc %R1,%0"
   [(set_attr "type" "fadd")])
 
+(define_insn ""
+  [(set (match_operand:SF 0 "register_operand" "=&f")
+       (float:SF (match_operand:DI 1 "register_operand" "f")))]
+  "TARGET_FP && alpha_tp == ALPHA_TP_INSN"
+  "cvtq%,%+%& %1,%0"
+  [(set_attr "type" "fadd")
+   (set_attr "trap" "yes")])
+
 (define_insn "floatdisf2"
   [(set (match_operand:SF 0 "register_operand" "=f")
        (float:SF (match_operand:DI 1 "register_operand" "f")))]