diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-20 20:19:12 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-20 20:19:12 +0000 |
commit | 8ab1f4fa781949a2a2d46649777e8b8eec26e671 (patch) | |
tree | c7394fee0a31321aa8e2cfda3cb2cd138f61e0ff /gcc | |
parent | 582c0767b1d6649d67c81c3dc7b587ee6e73bff1 (diff) | |
download | gcc-8ab1f4fa781949a2a2d46649777e8b8eec26e671.tar.gz |
* m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
of doing the change by hand.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44212 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.md | 18 |
2 files changed, 9 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8e1ab0674bb..67572ed084f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org> + Jan Hubicka <jh@suse.cz> + + * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead + of doing the change by hand. + Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz> * rtlanal.c (set_noop_p): Return true for noop jumps. diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index 33473ddff3b..f81138e9af5 100644 --- a/gcc/config/m68k/m68k.md +++ b/gcc/config/m68k/m68k.md @@ -1551,11 +1551,7 @@ " { operands[1] = make_safe_from (operands[1], operands[0]); - if (GET_CODE (operands[0]) == SUBREG) - operands[2] = gen_rtx_SUBREG (HImode, SUBREG_REG (operands[0]), - SUBREG_BYTE (operands[0])); - else - operands[2] = gen_rtx_SUBREG (HImode, operands[0], 0); + operands[2] = gen_lowpart (HImode, operands[0]); }") (define_expand "zero_extendqihi2" @@ -1567,11 +1563,7 @@ " { operands[1] = make_safe_from (operands[1], operands[0]); - if (GET_CODE (operands[0]) == SUBREG) - operands[2] = gen_rtx_SUBREG (QImode, SUBREG_REG (operands[0]), - SUBREG_BYTE (operands[0])); - else - operands[2] = gen_rtx_SUBREG (QImode, operands[0], 0); + operands[2] = gen_lowpart (QImode, operands[0]); }") (define_expand "zero_extendqisi2" @@ -1583,11 +1575,7 @@ " { operands[1] = make_safe_from (operands[1], operands[0]); - if (GET_CODE (operands[0]) == SUBREG) - operands[2] = gen_rtx_SUBREG (QImode, SUBREG_REG (operands[0]), - SUBREG_BYTE (operands[0])); - else - operands[2] = gen_rtx_SUBREG (QImode, operands[0], 0); + operands[2] = gen_lowpart (QImode, operands[0]); }") ;; Patterns to recognize zero-extend insns produced by the combiner. |