h8300.md (abssf2): New.

* config/h8300/h8300.md (abssf2): New.
	(*abssf2_h8300): Likewise.
	(*abssf2_h8300hs): Likewise.

From-SVN: r62654
This commit is contained in:
Kazu Hirata
2003-02-10 22:45:39 +00:00
committed by Kazu Hirata
parent 411e27598d
commit 2a4e6df4ce
2 changed files with 32 additions and 0 deletions
+6
View File
@@ -1,3 +1,9 @@
2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (abssf2): New.
(*abssf2_h8300): Likewise.
(*abssf2_h8300hs): Likewise.
2003-02-10 Phil Edwards <pme@gcc.gnu.org>
* tree.c (build_tree_list): Fix parameter names in comment.
+26
View File
@@ -1437,7 +1437,33 @@
"xor.w\\t#32768,%e0"
[(set_attr "cc" "clobber")
(set_attr "length" "4")])
;; ----------------------------------------------------------------------
;; ABSOLUTE VALUE INSTRUCTIONS
;; ----------------------------------------------------------------------
(define_expand "abssf2"
[(set (match_operand:SF 0 "register_operand" "")
(abs:SF (match_operand:SF 1 "register_operand" "")))]
""
"")
(define_insn "*abssf2_h8300"
[(set (match_operand:SF 0 "register_operand" "=r")
(abs:SF (match_operand:SF 1 "register_operand" "0")))]
"TARGET_H8300"
"and.b\\t#127,%z0"
[(set_attr "cc" "clobber")
(set_attr "length" "2")])
(define_insn "*abssf2_h8300hs"
[(set (match_operand:SF 0 "register_operand" "=r")
(abs:SF (match_operand:SF 1 "register_operand" "0")))]
"TARGET_H8300H || TARGET_H8300S"
"and.w\\t#32767,%e0"
[(set_attr "cc" "clobber")
(set_attr "length" "4")])
;; ----------------------------------------------------------------------
;; NOT INSTRUCTIONS
;; ----------------------------------------------------------------------