diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-01-06 14:14:33 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-01-06 14:14:33 +0000 |
commit | efbd757f784fb3b08f1977e9b8763aa5f56ef658 (patch) | |
tree | 1d732c3bb5f909b2bc4b4ef825ffdbdf023843fd /gcc | |
parent | 727b9b8cf57d0c5c3e18606ed52fa9fb3f275735 (diff) | |
download | gcc-efbd757f784fb3b08f1977e9b8763aa5f56ef658.zip gcc-efbd757f784fb3b08f1977e9b8763aa5f56ef658.tar.gz gcc-efbd757f784fb3b08f1977e9b8763aa5f56ef658.tar.bz2 |
* config/h8300/h8300.md (*twoshifts_l16_r1): New.
From-SVN: r60933
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.md | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 51cee41..f3f9d6a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-01-06 Kazu Hirata <kazu@cs.umass.edu> + + * config/h8300/h8300.md (*twoshifts_l16_r1): New. + 2003-01-06 Richard Sandiford <rsandifo@redhat.com> * config/mips/mips.md (leadi): Use dla rather than la. diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index be6bc0f..2f7619a 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -2576,6 +2576,28 @@ (clobber (scratch:QI))])] "") +;; and:SI + +;; ((SImode) HImode) << 15 + +(define_insn_and_split "*twoshifts_l16_r1" + [(set (match_operand:SI 0 "register_operand" "=r") + (and:SI (ashift:SI (match_operand:SI 1 "register_operand" "0") + (const_int 15)) + (const_int 2147450880)))] + "(TARGET_H8300H || TARGET_H8300S)" + "#" + "&& reload_completed" + [(parallel [(set (match_dup 0) + (ashift:SI (match_dup 0) + (const_int 16))) + (clobber (scratch:QI))]) + (parallel [(set (match_dup 0) + (lshiftrt:SI (match_dup 0) + (const_int 1))) + (clobber (scratch:QI))])] + "") + ;; plus:SI (define_insn "*addsi3_lshiftrt_16_zexthi" |