diff options
| author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-04-16 18:58:03 +0000 |
|---|---|---|
| committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-04-16 18:58:03 +0000 |
| commit | e1ae8bc6e582ca614f0270a5ccaa8bbf6e14f349 (patch) | |
| tree | 85d05845deb5a1d2d451971789ded317da0ddc1a | |
| parent | a7e6b353c36d2618829bb7b60980f0e39d75cc2e (diff) | |
| download | ppe42-gcc-e1ae8bc6e582ca614f0270a5ccaa8bbf6e14f349.tar.gz ppe42-gcc-e1ae8bc6e582ca614f0270a5ccaa8bbf6e14f349.zip | |
* config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158442 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 2 | ||||
| -rw-r--r-- | gcc/config/h8300/h8300.h | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b5ed79cf922..ee27f050365 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -20,6 +20,8 @@ 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com> + * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX. + * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx, cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in #xx:3 and #xx:4 mode. diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 9757afc2de3..d3f714c3afd 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -801,15 +801,12 @@ struct cum_arg || SYMBOL_REF_FLAG (XEXP (XEXP (XEXP (OP, 0), 0), 0)))) \ || (GET_CODE (OP) == MEM \ && h8300_eightbit_constant_address_p (XEXP (OP, 0))) \ - || (GET_CODE (OP) == MEM && TARGET_H8300S \ + || (GET_CODE (OP) == MEM && (TARGET_H8300S || TARGET_H8300SX) \ && GET_CODE (XEXP (OP, 0)) == CONST_INT)) /* Multi-letter constraints starting with W are to be used for operands that require a memory operand, i.e,. that are never used - along with register constraints (see EXTRA_MEMORY_CONSTRAINTS). - For operands that require a memory operand (or not) but that always - accept a register, a multi-letter constraint starting with Y should - be used instead. */ + along with register constraints (see EXTRA_MEMORY_CONSTRAINTS). */ #define OK_FOR_WU(OP) \ (GET_CODE (OP) == MEM && OK_FOR_U (OP)) |

