From: Kazu Hirata Date: Mon, 29 Sep 2003 16:34:09 +0000 (+0000) Subject: h8300.md (*tst_extzv_1_n): Combine with the define_split immediately below to form... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=681a664b1369620d4039d7c20931d921ea8507a8;p=gcc.git h8300.md (*tst_extzv_1_n): Combine with the define_split immediately below to form define_insn_and_split. * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the define_split immediately below to form define_insn_and_split. From-SVN: r71903 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 76e38ad310e..bf061a39385 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-09-29 Kazu Hirata + + * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the + define_split immediately below to form define_insn_and_split. + 2003-09-29 Kazu Hirata * config/h8300/h8300.md (*tstsi_variable_bit): New. diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 33828bc1e5e..095949d72fb 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -590,7 +590,7 @@ [(set_attr "length" "2") (set_attr "cc" "set_zn")]) -(define_insn "*tst_extzv_1_n" +(define_insn_and_split "*tst_extzv_1_n" [(set (cc0) (zero_extract:SI (match_operand:QI 0 "general_operand_src" "r,U,mn>") (const_int 1) @@ -601,17 +601,7 @@ btst\\t%Z1,%Y0 btst\\t%Z1,%Y0 #" - [(set_attr "length" "2,8,10") - (set_attr "cc" "set_zn,set_zn,set_zn")]) - -(define_split - [(set (cc0) - (zero_extract:SI (match_operand:QI 0 "general_operand" "") - (const_int 1) - (match_operand 1 "const_int_operand" ""))) - (clobber (match_operand:QI 2 "register_operand" ""))] - "(TARGET_H8300H || TARGET_H8300S) - && reload_completed + "&& reload_completed && !EXTRA_CONSTRAINT (operands[0], 'U')" [(set (match_dup 2) (match_dup 0)) @@ -619,7 +609,9 @@ (const_int 1) (match_dup 1))) (clobber (scratch:QI))])] - "") + "" + [(set_attr "length" "2,8,10") + (set_attr "cc" "set_zn,set_zn,set_zn")]) (define_insn "" [(set (cc0) (zero_extract:SI (match_operand:SI 0 "register_operand" "r")