OSDN Git Service

* pa.md (setccfp0, setccfp1): New patterns.
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Sep 2002 22:05:43 +0000 (22:05 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Sep 2002 22:05:43 +0000 (22:05 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56814 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/pa/pa.md

index 9c952be..7b8e319 100644 (file)
@@ -1,3 +1,7 @@
+2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * pa.md (setccfp0, setccfp1): New patterns.
+
 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * frv-protos.h (frv_init_builtins, frv_expand_builtin,
index 7632beb..29fe1c8 100644 (file)
   [(set_attr "length" "4")
    (set_attr "type" "fpcc")])
 
+;; The following two patterns are optimization placeholders.  In almost
+;; all cases, the user of the condition code will be simplified and the
+;; original condition code setting insn should be eliminated.
+
+(define_insn "*setccfp0"
+  [(set (reg:CCFP 0)
+       (const_int 0))]
+  "! TARGET_SOFT_FLOAT"
+  "fcmp,dbl,!= %%fr0,%%fr0"
+  [(set_attr "length" "4")
+   (set_attr "type" "fpcc")])
+
+(define_insn "*setccfp1"
+  [(set (reg:CCFP 0)
+       (const_int 1))]
+  "! TARGET_SOFT_FLOAT"
+  "fcmp,dbl,= %%fr0,%%fr0"
+  [(set_attr "length" "4")
+   (set_attr "type" "fpcc")])
+
 ;; scc insns.
 
 (define_expand "seq"