gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jan 2007 09:23:35 +0000 (09:23 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jan 2007 09:23:35 +0000 (09:23 +0000)
200x-xx-xx  Julian Brown  <julian@codesourcery.com>

* config/m68k/m68k.h (TARGET_ISAB): New macro.
* config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
* config/m68k/m68k.md: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120709 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/m68k/m68k.c
gcc/config/m68k/m68k.h
gcc/config/m68k/m68k.md

index 6be2098..0c706cb 100644 (file)
@@ -1,5 +1,11 @@
 2007-01-12  Julian Brown  <julian@codesourcery.com>
 
+       * config/m68k/m68k.h (TARGET_ISAB): New macro.
+       * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
+       * config/m68k/m68k.md: Likewise.
+
+2007-01-12  Julian Brown  <julian@codesourcery.com>
+
        * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
        TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
 
index 2a2b1aa..1a2505c 100644 (file)
@@ -1562,7 +1562,7 @@ const_method (rtx constant)
   if (USE_MOVQ ((u >> 16) | (u << 16)))
     return SWAP;
 
-  if (TARGET_CFV4)
+  if (TARGET_ISAB)
     {
       /* Try using MVZ/MVS with an immediate value to load constants.  */
       if (i >= 0 && i <= 65535)
@@ -1779,7 +1779,7 @@ valid_mov3q_const (rtx constant)
 {
   int i;
 
-  if (TARGET_CFV4 && GET_CODE (constant) == CONST_INT)
+  if (TARGET_ISAB && GET_CODE (constant) == CONST_INT)
     {
       i = INTVAL (constant);
       if (i == -1 || (i >= 1 && i <= 7))
index 4f923c3..41f305b 100644 (file)
@@ -126,6 +126,8 @@ Boston, MA 02110-1301, USA.  */
 /* Size (in bytes) of FPU registers.  */
 #define TARGET_FP_REG_SIZE     (TARGET_COLDFIRE ? 8 : 12)
 
+#define TARGET_ISAB            TARGET_CFV4
+
 #define TUNE_68000_10  (!TARGET_68020 && !TARGET_COLDFIRE)
 #define TUNE_68030     TARGET_68030
 #define TUNE_68040     TARGET_68040
index c02c75c..c312bfb 100644 (file)
 (define_insn "*movsi_cf"
   [(set (match_operand:SI 0 "nonimmediate_operand" "=r<Q>,g,U")
        (match_operand:SI 1 "general_operand" "g,r<Q>,U"))]
-  "TARGET_COLDFIRE && !TARGET_CFV4"
+  "TARGET_COLDFIRE && !TARGET_ISAB"
   "* return output_move_simode (operands);")
 
 (define_insn "*movsi_cfv4"
   [(set (match_operand:SI 0 "nonimmediate_operand" "=r<Q>,g,U")
        (match_operand:SI 1 "general_operand" "Rg,Rr<Q>,U"))]
-  "TARGET_CFV4"
+  "TARGET_ISAB"
   "* return output_move_simode (operands);")
 
 ;; Special case of fullword move, where we need to get a non-GOT PIC
 (define_insn "*zero_extendhisi2_cf"
   [(set (match_operand:SI 0 "register_operand" "=d")
        (zero_extend:SI (match_operand:HI 1 "nonimmediate_src_operand" "rmS")))]
-  "TARGET_CFV4"
+  "TARGET_ISAB"
   "mvz%.w %1,%0")
 
 (define_insn "zero_extendhisi2"
 (define_insn "*zero_extendqisi2_cfv4"
   [(set (match_operand:SI 0 "register_operand" "=d")
        (zero_extend:SI (match_operand:QI 1 "nonimmediate_src_operand" "dmS")))]
-  "TARGET_CFV4"
+  "TARGET_ISAB"
   "mvz%.b %1,%0")
 
 (define_insn "zero_extendqisi2"
 (define_split
   [(set (match_operand 0 "register_operand" "")
        (zero_extend (match_operand 1 "nonimmediate_src_operand" "")))]
-  "!TARGET_CFV4 && reload_completed && reg_mentioned_p (operands[0], operands[1])"
+  "!TARGET_ISAB
+   && reload_completed
+   && reg_mentioned_p (operands[0], operands[1])"
   [(set (strict_low_part (match_dup 2))
        (match_dup 1))
    (set (match_dup 0)
 (define_split
   [(set (match_operand 0 "register_operand" "")
        (zero_extend (match_operand 1 "nonimmediate_src_operand" "")))]
-  "!TARGET_CFV4 && reload_completed"
+  "!TARGET_ISAB && reload_completed"
   [(set (match_dup 0)
        (const_int 0))
    (set (strict_low_part (match_dup 2))
 {
   CC_STATUS_INIT;
   operands[2] = gen_rtx_REG (SImode, REGNO (operands[0]) + 1);
-  if (TARGET_CFV4)
+  if (TARGET_ISAB)
     return "mvs%.b %1,%2\;smi %0\;extb%.l %0";
   if (TARGET_68020 || TARGET_COLDFIRE)
     {
 {
   CC_STATUS_INIT;
   operands[2] = gen_rtx_REG (SImode, REGNO (operands[0]) + 1);
-  if (TARGET_CFV4)
+  if (TARGET_ISAB)
     return "mvs%.w %1,%2\;smi %0\;extb%.l %0";
   if (TARGET_68020 || TARGET_COLDFIRE)
     return "move%.w %1,%2\;ext%.l %2\;smi %0\;extb%.l %0";
   [(set (match_operand:SI 0 "nonimmediate_operand" "=d")
        (sign_extend:SI
         (match_operand:HI 1 "nonimmediate_src_operand" "rmS")))]
-  "TARGET_CFV4"
+  "TARGET_ISAB"
   "mvs%.w %1,%0")
 
 (define_insn "*68k_extendhisi2"
   [(set (match_operand:SI 0 "nonimmediate_operand" "=*d,a")
        (sign_extend:SI
         (match_operand:HI 1 "nonimmediate_src_operand" "0,rmS")))]
-  "!TARGET_CFV4"
+  "!TARGET_ISAB"
 {
   if (ADDRESS_REG_P (operands[0]))
     return "move%.w %1,%0";
 (define_insn "*cfv4_extendqisi2"
   [(set (match_operand:SI 0 "nonimmediate_operand" "=d")
        (sign_extend:SI (match_operand:QI 1 "nonimmediate_operand" "rms")))]
-  "TARGET_CFV4"
+  "TARGET_ISAB"
   "mvs%.b %1,%0")
 
 (define_insn "*68k_extendqisi2"
   [(set (match_operand:SI 0 "nonimmediate_operand" "=d")
        (sign_extend:SI (match_operand:QI 1 "nonimmediate_operand" "0")))]
-  "TARGET_68020 || (TARGET_COLDFIRE && !TARGET_CFV4)"
+  "TARGET_68020 || (TARGET_COLDFIRE && !TARGET_ISAB)"
   "extb%.l %0")
 \f
 ;; Conversions between float and double.
        (umod:HI (match_dup 1) (match_dup 2)))]
   "!TARGET_COLDFIRE || TARGET_CF_HWDIV"
 {
-  if (TARGET_CFV4)
+  if (TARGET_ISAB)
     output_asm_insn (MOTOROLA ?
       "mvz%.w %0,%0\;divu%.w %2,%0" :
       "mvz%.w %0,%0\;divu %2,%0",
                (match_operand:SI 2 "general_src_operand" "d,dmsK")))]
   "TARGET_COLDFIRE"
 {
-  if (TARGET_CFV4 && DATA_REG_P (operands[0])
+  if (TARGET_ISAB
+      && DATA_REG_P (operands[0])
       && GET_CODE (operands[2]) == CONST_INT)
     {
       if (INTVAL (operands[2]) == 0x000000ff)