OSDN Git Service

* config/rs6000/spe.md ("*nabssf2_gpr"): New.
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Aug 2003 16:54:15 +0000 (16:54 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Aug 2003 16:54:15 +0000 (16:54 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70545 138bc75d-0d04-0410-961f-82ee72b054a4

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

index aa20ad3..4389240 100644 (file)
@@ -1,3 +1,7 @@
+2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/rs6000/spe.md ("*nabssf2_gpr"): New.
+
 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/mips/mips.md: Quote C code in braces.  Remove use of
index 82ab17b..becdaa4 100644 (file)
   "efsabs %0,%1"
   [(set_attr "type" "fpsimple")])
 
+(define_insn "*nabssf2_gpr"
+  [(set (match_operand:SF 0 "gpc_reg_operand" "=r")
+       (neg:SF (abs:SF (match_operand:SF 1 "gpc_reg_operand" "r"))))]
+  "TARGET_HARD_FLOAT && !TARGET_FPRS"
+  "efsnabs %0,%1"
+  [(set_attr "type" "fpsimple")])
+
 (define_insn "*addsf3_gpr"
   [(set (match_operand:SF 0 "gpc_reg_operand" "=r")
        (plus:SF (match_operand:SF 1 "gpc_reg_operand" "%r")