diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-03-20 16:03:34 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-03-20 16:03:34 +0000 |
commit | 101cb92aa6a16a51b5011cca84e2d2d1600cad4e (patch) | |
tree | 493a227778983dc6b1b8773fd0435cf09bfe50ad /gcc | |
parent | 54c99af1553e4093dd007c19eff81a7ae55297b3 (diff) | |
download | gcc-101cb92aa6a16a51b5011cca84e2d2d1600cad4e.zip gcc-101cb92aa6a16a51b5011cca84e2d2d1600cad4e.tar.gz gcc-101cb92aa6a16a51b5011cca84e2d2d1600cad4e.tar.bz2 |
* config/h8300/h8300.md (a peephole2): New.
From-SVN: r64614
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.md | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 43217ac..0f58a3f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2003-03-20 Kazu Hirata <kazu@cs.umass.edu> + * config/h8300/h8300.md (a peephole2): New. + +2003-03-20 Kazu Hirata <kazu@cs.umass.edu> + * config/h8300/h8300.md (*addsi3_and_r_1): New. (*addsi3_and_not_r_1): Likewise. diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 785be85..50db771 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -3755,6 +3755,26 @@ (define_peephole2 [(set (match_operand:SI 0 "register_operand" "") + (match_operand:SI 1 "general_operand" "")) + (set (match_dup 0) + (and:SI (match_dup 0) + (match_operand:SI 2 "const_int_qi_operand" "")))] + "(TARGET_H8300H || TARGET_H8300S) + && !reg_overlap_mentioned_p (operands[0], operands[1]) + && !(GET_CODE (operands[1]) == MEM && MEM_VOLATILE_P (operands[1]))" + [(set (match_dup 0) + (const_int 0)) + (set (strict_low_part (match_dup 3)) + (match_dup 4)) + (set (match_dup 0) + (and:SI (match_dup 0) + (match_dup 5)))] + "operands[3] = gen_lowpart (QImode, operands[0]); + operands[4] = gen_lowpart (QImode, operands[1]); + operands[5] = GEN_INT (~0xff | INTVAL (operands[2]));") + +(define_peephole2 + [(set (match_operand:SI 0 "register_operand" "") (match_operand:SI 1 "memory_operand" "")) (set (match_dup 0) (and:SI (match_dup 0) |