diff options
author | Bernd Schmidt <bernd.schmidt@analog.com> | 2007-04-14 10:50:45 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2007-04-14 10:50:45 +0000 |
commit | 4d4f2837c536a578f03d4a51fe60aa7b1312ed45 (patch) | |
tree | e866fee0cb65b8a1c5d3d2c19e8c7de935502b61 /gcc | |
parent | 7d33c31d9a49cbb19adc3741330bd6cb33818076 (diff) | |
download | gcc-4d4f2837c536a578f03d4a51fe60aa7b1312ed45.zip gcc-4d4f2837c536a578f03d4a51fe60aa7b1312ed45.tar.gz gcc-4d4f2837c536a578f03d4a51fe60aa7b1312ed45.tar.bz2 |
bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
* config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
* config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
From-SVN: r123813
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.h | 10 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.md | 10 |
3 files changed, 18 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2067138..016c62a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-04-14 Bernd Schmidt <bernd.schmidt@analog.com> + + * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied. + * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives. + 2007-04-14 Kazu Hirata <kazu@codesourcery.com> * config.gcc: Recognize fido. diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h index 3c7f012..c600af3 100644 --- a/gcc/config/bfin/bfin.h +++ b/gcc/config/bfin/bfin.h @@ -684,7 +684,15 @@ enum reg_class If `HARD_REGNO_MODE_OK (R, MODE1)' and `HARD_REGNO_MODE_OK (R, MODE2)' are ever different for any R, then `MODES_TIEABLE_P (MODE1, MODE2)' must be zero. */ -#define MODES_TIEABLE_P(MODE1, MODE2) ((MODE1) == (MODE2)) +#define MODES_TIEABLE_P(MODE1, MODE2) \ + ((MODE1) == (MODE2) \ + || ((GET_MODE_CLASS (MODE1) == MODE_INT \ + || GET_MODE_CLASS (MODE1) == MODE_FLOAT) \ + && (GET_MODE_CLASS (MODE2) == MODE_INT \ + || GET_MODE_CLASS (MODE2) == MODE_FLOAT) \ + && (MODE1) != BImode && (MODE2) != BImode \ + && GET_MODE_SIZE (MODE1) <= UNITS_PER_WORD \ + && GET_MODE_SIZE (MODE2) <= UNITS_PER_WORD)) /* `PREFERRED_RELOAD_CLASS (X, CLASS)' A C expression that places additional restrictions on the register diff --git a/gcc/config/bfin/bfin.md b/gcc/config/bfin/bfin.md index e7c41e2..853024c 100644 --- a/gcc/config/bfin/bfin.md +++ b/gcc/config/bfin/bfin.md @@ -522,22 +522,20 @@ ;; with a PLUS. We generally require fewer secondary reloads this way. (define_insn "*movsi_insn" - [(set (match_operand:SI 0 "nonimmediate_operand" "=da,x*y,*k,da,da,x,x,x,da,mr") - (match_operand:SI 1 "general_operand" "da,x*y,da,*k,xKs7,xKsh,xKuh,ix,mr,da"))] + [(set (match_operand:SI 0 "nonimmediate_operand" "=da,x*y,da,x,x,x,da,mr") + (match_operand:SI 1 "general_operand" "da,x*y,xKs7,xKsh,xKuh,ix,mr,da"))] "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM" "@ %0 = %1; %0 = %1; - %0 = %1; - %0 = %1; %0 = %1 (X); %0 = %1 (X); %0 = %1 (Z); # %0 = %1%! %0 = %1%!" - [(set_attr "type" "move,move,move,move,mvi,mvi,mvi,*,mcld,mcst") - (set_attr "length" "2,2,2,2,2,4,4,*,*,*")]) + [(set_attr "type" "move,move,mvi,mvi,mvi,*,mcld,mcst") + (set_attr "length" "2,2,2,4,4,*,*,*")]) (define_insn "*movsi_insn32" [(set (match_operand:SI 0 "register_operand" "=d,d") |