]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/m32r/m32r.md
Update copyright years.
[thirdparty/gcc.git] / gcc / config / m32r / m32r.md
index ec0d61f294c7e85b165bd3812dae2c15ebe8fe1a..823342af1b4335fa465ea77ee7e3145191a7cbb8 100644 (file)
@@ -1,6 +1,5 @@
 ;; Machine description of the Renesas M32R cpu for GNU C compiler
-;; Copyright (C) 1996, 1997, 1998, 1999, 2001, 2003, 2004, 2005,
-;  2007, 2008 Free Software Foundation, Inc.
+;; Copyright (C) 1996-2020 Free Software Foundation, Inc.
 
 ;; This file is part of GCC.
 
@@ -69,9 +68,9 @@
 
 ;; The target CPU we're compiling for.
 (define_attr "cpu" "m32r,m32r2,m32rx"
-  (cond [(ne (symbol_ref "TARGET_M32RX") (const_int 0))
+  (cond [(match_test "TARGET_M32RX")
             (const_string "m32rx")
-        (ne (symbol_ref "TARGET_M32R2") (const_int 0))
+        (match_test "TARGET_M32R2")
             (const_string "m32r2")]
     (const_string "m32r")))
 
     {
       switch (GET_CODE (operands[1]))
        {
-         HOST_WIDE_INT value;
-
          default:
            break;
 
 }"
   [(set_attr "type" "call")
    (set (attr "length")
-       (if_then_else (eq (symbol_ref "call26_operand (operands[0], FUNCTION_MODE)")
-                         (const_int 0))
+       (if_then_else (not (match_test "call26_operand (operands[0], FUNCTION_MODE)"))
                      (const_int 12) ; 10 + 2 for nop filler
                      ; The return address must be on a 4 byte boundary so
                      ; there's no point in using a value of 2 here.  A 2 byte
 }"
   [(set_attr "type" "call")
    (set (attr "length")
-       (if_then_else (eq (symbol_ref "call26_operand (operands[1], FUNCTION_MODE)")
-                         (const_int 0))
+       (if_then_else (not (match_test "call26_operand (operands[1], FUNCTION_MODE)"))
                      (const_int 12) ; 10 + 2 for nop filler
                      ; The return address must be on a 4 byte boundary so
                      ; there's no point in using a value of 2 here.  A 2 byte
 ;; Argument 2 is the length
 ;; Argument 3 is the alignment
 
-(define_expand "movmemsi"
+(define_expand "cpymemsi"
   [(parallel [(set (match_operand:BLK 0 "general_operand" "")
                   (match_operand:BLK 1 "general_operand" ""))
              (use (match_operand:SI  2 "immediate_operand" ""))
 
 ;; Insn generated by block moves
 
-(define_insn "movmemsi_internal"
+(define_insn "cpymemsi_internal"
   [(set (mem:BLK (match_operand:SI 0 "register_operand" "r"))  ;; destination
        (mem:BLK (match_operand:SI 1 "register_operand" "r")))  ;; source
    (use (match_operand:SI 2 "m32r_block_immediate_operand" "J"));; # bytes to move