From d7c5dd0443b9dafa7d8dfc5f13ef77b2301c0214 Mon Sep 17 00:00:00 2001 From: kazu Date: Fri, 8 Nov 2002 19:30:31 +0000 Subject: [PATCH] * config/h8300/h8300.md (two anonymous test insns): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58930 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/h8300/h8300.md | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c49ab9b..dda45b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-11-08 Kazu Hirata + + * config/h8300/h8300.md (two anonymous test insns): New. + Fri Nov 8 11:20:19 CET 2002 Jan Hubicka * jump.c (mark_jump_label): Handle subregs of label_refs. diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index d794e44..f0b9068 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -613,6 +613,15 @@ [(set_attr "length" "2") (set_attr "cc" "set_znv")]) +(define_insn "" + [(set (cc0) + (and:HI (match_operand:HI 0 "register_operand" "r") + (const_int -256)))] + "" + "mov.b %t0,%t0" + [(set_attr "length" "2") + (set_attr "cc" "set_znv")]) + (define_insn "tstsi" [(set (cc0) (match_operand:SI 0 "register_operand" "r"))] "TARGET_H8300H || TARGET_H8300S" @@ -620,6 +629,15 @@ [(set_attr "length" "2") (set_attr "cc" "set_znv")]) +(define_insn "" + [(set (cc0) + (and:SI (match_operand:SI 0 "register_operand" "r") + (const_int -65536)))] + "" + "mov.w %e0,%e0" + [(set_attr "length" "2") + (set_attr "cc" "set_znv")]) + (define_insn "cmpqi" [(set (cc0) (compare:QI (match_operand:QI 0 "register_operand" "r") -- 2.7.4