+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.
"xor.w\\t#32768,%e0"
[(set_attr "cc" "clobber")
(set_attr "length" "4")])
+\f
+;; ----------------------------------------------------------------------
+;; 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")])
+\f
;; ----------------------------------------------------------------------
;; NOT INSTRUCTIONS
;; ----------------------------------------------------------------------