Commit 2300b9dd by Kazu Hirata Committed by Kazu Hirata

frv.c, [...]: Follow spelling conventions.

	* config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
	config/frv/predicates.md: Follow spelling conventions.

From-SVN: r122118
parent 3b962ea0
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
* config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h, * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
config/sh/sh.md: Follow spelling conventions. config/sh/sh.md: Follow spelling conventions.
* config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
config/frv/predicates.md: Follow spelling conventions.
2007-02-18 Roger Sayle <roger@eyesopen.com> 2007-02-18 Roger Sayle <roger@eyesopen.com>
PR rtl-optimization/28173 PR rtl-optimization/28173
......
...@@ -3360,7 +3360,7 @@ frv_legitimate_address_p (enum machine_mode mode, ...@@ -3360,7 +3360,7 @@ frv_legitimate_address_p (enum machine_mode mode,
break; break;
case CONST_INT: case CONST_INT:
/* 12 bit immediate */ /* 12-bit immediate */
if (condexec_p) if (condexec_p)
ret = FALSE; ret = FALSE;
else else
...@@ -3411,7 +3411,7 @@ frv_legitimate_address_p (enum machine_mode mode, ...@@ -3411,7 +3411,7 @@ frv_legitimate_address_p (enum machine_mode mode,
break; break;
case CONST_INT: case CONST_INT:
/* 12 bit immediate */ /* 12-bit immediate */
if (condexec_p) if (condexec_p)
ret = FALSE; ret = FALSE;
else else
...@@ -9483,7 +9483,7 @@ frv_rtx_costs (rtx x, ...@@ -9483,7 +9483,7 @@ frv_rtx_costs (rtx x,
switch (code) switch (code)
{ {
case CONST_INT: case CONST_INT:
/* Make 12 bit integers really cheap. */ /* Make 12-bit integers really cheap. */
if (IN_RANGE_P (INTVAL (x), -2048, 2047)) if (IN_RANGE_P (INTVAL (x), -2048, 2047))
{ {
*total = 0; *total = 0;
......
...@@ -1272,21 +1272,21 @@ extern enum reg_class reg_class_from_letter[]; ...@@ -1272,21 +1272,21 @@ extern enum reg_class reg_class_from_letter[];
#define ZERO_P(x) (x == CONST0_RTX (GET_MODE (x))) #define ZERO_P(x) (x == CONST0_RTX (GET_MODE (x)))
/* 6 bit signed immediate. */ /* 6-bit signed immediate. */
#define CONST_OK_FOR_I(VALUE) IN_RANGE_P(VALUE, -32, 31) #define CONST_OK_FOR_I(VALUE) IN_RANGE_P(VALUE, -32, 31)
/* 10 bit signed immediate. */ /* 10-bit signed immediate. */
#define CONST_OK_FOR_J(VALUE) IN_RANGE_P(VALUE, -512, 511) #define CONST_OK_FOR_J(VALUE) IN_RANGE_P(VALUE, -512, 511)
/* Unused */ /* Unused */
#define CONST_OK_FOR_K(VALUE) 0 #define CONST_OK_FOR_K(VALUE) 0
/* 16 bit signed immediate. */ /* 16-bit signed immediate. */
#define CONST_OK_FOR_L(VALUE) IN_RANGE_P(VALUE, -32768, 32767) #define CONST_OK_FOR_L(VALUE) IN_RANGE_P(VALUE, -32768, 32767)
/* 16 bit unsigned immediate. */ /* 16-bit unsigned immediate. */
#define CONST_OK_FOR_M(VALUE) IN_RANGE_P (VALUE, 0, 65535) #define CONST_OK_FOR_M(VALUE) IN_RANGE_P (VALUE, 0, 65535)
/* 12 bit signed immediate that is negative. */ /* 12-bit signed immediate that is negative. */
#define CONST_OK_FOR_N(VALUE) IN_RANGE_P(VALUE, -2048, -1) #define CONST_OK_FOR_N(VALUE) IN_RANGE_P(VALUE, -2048, -1)
/* Zero */ /* Zero */
#define CONST_OK_FOR_O(VALUE) ((VALUE) == 0) #define CONST_OK_FOR_O(VALUE) ((VALUE) == 0)
/* 12 bit signed immediate that is negative. */ /* 12-bit signed immediate that is negative. */
#define CONST_OK_FOR_P(VALUE) IN_RANGE_P(VALUE, 1, 2047) #define CONST_OK_FOR_P(VALUE) IN_RANGE_P(VALUE, 1, 2047)
/* A C expression that defines the machine-dependent operand constraint letters /* A C expression that defines the machine-dependent operand constraint letters
......
...@@ -133,11 +133,11 @@ ...@@ -133,11 +133,11 @@
;; than a word wide. Constraints for these operands should use `n' rather ;; than a word wide. Constraints for these operands should use `n' rather
;; than `i'. ;; than `i'.
;; ;;
;; 'I' First machine-dependent integer constant (6 bit signed ints). ;; 'I' First machine-dependent integer constant (6-bit signed ints).
;; 'J' Second machine-dependent integer constant (10 bit signed ints). ;; 'J' Second machine-dependent integer constant (10-bit signed ints).
;; 'K' Third machine-dependent integer constant (-2048). ;; 'K' Third machine-dependent integer constant (-2048).
;; 'L' Fourth machine-dependent integer constant (16 bit signed ints). ;; 'L' Fourth machine-dependent integer constant (16-bit signed ints).
;; 'M' Fifth machine-dependent integer constant (16 bit unsigned ints). ;; 'M' Fifth machine-dependent integer constant (16-bit unsigned ints).
;; 'N' Sixth machine-dependent integer constant (-2047..-1). ;; 'N' Sixth machine-dependent integer constant (-2047..-1).
;; 'O' Seventh machine-dependent integer constant (zero). ;; 'O' Seventh machine-dependent integer constant (zero).
;; 'P' Eighth machine-dependent integer constant (1..2047). ;; 'P' Eighth machine-dependent integer constant (1..2047).
...@@ -2916,7 +2916,7 @@ ...@@ -2916,7 +2916,7 @@
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; :: ;; ::
;; :: 32 bit Integer arithmetic ;; :: 32-bit Integer arithmetic
;; :: ;; ::
;; :::::::::::::::::::: ;; ::::::::::::::::::::
...@@ -2943,7 +2943,7 @@ ...@@ -2943,7 +2943,7 @@
[(set_attr "length" "4") [(set_attr "length" "4")
(set_attr "type" "int")]) (set_attr "type" "int")])
;; Signed multiplication producing 64 bit results from 32 bit inputs ;; Signed multiplication producing 64-bit results from 32-bit inputs
;; Note, frv doesn't have a 32x32->32 bit multiply, but the compiler ;; Note, frv doesn't have a 32x32->32 bit multiply, but the compiler
;; will do the 32x32->64 bit multiply and use the bottom word. ;; will do the 32x32->64 bit multiply and use the bottom word.
(define_expand "mulsidi3" (define_expand "mulsidi3"
...@@ -2978,7 +2978,7 @@ ...@@ -2978,7 +2978,7 @@
[(set_attr "length" "4") [(set_attr "length" "4")
(set_attr "type" "mul")]) (set_attr "type" "mul")])
;; Unsigned multiplication producing 64 bit results from 32 bit inputs ;; Unsigned multiplication producing 64-bit results from 32-bit inputs
(define_expand "umulsidi3" (define_expand "umulsidi3"
[(set (match_operand:DI 0 "even_gpr_operand" "") [(set (match_operand:DI 0 "even_gpr_operand" "")
(mult:DI (zero_extend:DI (match_operand:SI 1 "integer_register_operand" "")) (mult:DI (zero_extend:DI (match_operand:SI 1 "integer_register_operand" ""))
...@@ -3051,7 +3051,7 @@ ...@@ -3051,7 +3051,7 @@
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; :: ;; ::
;; :: 64 bit Integer arithmetic ;; :: 64-bit Integer arithmetic
;; :: ;; ::
;; :::::::::::::::::::: ;; ::::::::::::::::::::
...@@ -3230,7 +3230,7 @@ ...@@ -3230,7 +3230,7 @@
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; :: ;; ::
;; :: 32 bit floating point arithmetic ;; :: 32-bit floating point arithmetic
;; :: ;; ::
;; :::::::::::::::::::: ;; ::::::::::::::::::::
...@@ -3325,7 +3325,7 @@ ...@@ -3325,7 +3325,7 @@
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; :: ;; ::
;; :: 64 bit floating point arithmetic ;; :: 64-bit floating point arithmetic
;; :: ;; ::
;; :::::::::::::::::::: ;; ::::::::::::::::::::
...@@ -3420,7 +3420,7 @@ ...@@ -3420,7 +3420,7 @@
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; :: ;; ::
;; :: 32 bit Integer Shifts and Rotates ;; :: 32-bit Integer Shifts and Rotates
;; :: ;; ::
;; :::::::::::::::::::: ;; ::::::::::::::::::::
...@@ -3475,7 +3475,7 @@ ...@@ -3475,7 +3475,7 @@
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; :: ;; ::
;; :: 64 bit Integer Shifts and Rotates ;; :: 64-bit Integer Shifts and Rotates
;; :: ;; ::
;; :::::::::::::::::::: ;; ::::::::::::::::::::
...@@ -3527,11 +3527,11 @@ ...@@ -3527,11 +3527,11 @@
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; :: ;; ::
;; :: 32 Bit Integer Logical operations ;; :: 32-Bit Integer Logical operations
;; :: ;; ::
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; Logical AND, 32 bit integers ;; Logical AND, 32-bit integers
(define_insn "andsi3_media" (define_insn "andsi3_media"
[(set (match_operand:SI 0 "gpr_or_fpr_operand" "=d,f") [(set (match_operand:SI 0 "gpr_or_fpr_operand" "=d,f")
(and:SI (match_operand:SI 1 "gpr_or_fpr_operand" "%d,f") (and:SI (match_operand:SI 1 "gpr_or_fpr_operand" "%d,f")
...@@ -3559,7 +3559,7 @@ ...@@ -3559,7 +3559,7 @@
"" ""
"") "")
;; Inclusive OR, 32 bit integers ;; Inclusive OR, 32-bit integers
(define_insn "iorsi3_media" (define_insn "iorsi3_media"
[(set (match_operand:SI 0 "gpr_or_fpr_operand" "=d,f") [(set (match_operand:SI 0 "gpr_or_fpr_operand" "=d,f")
(ior:SI (match_operand:SI 1 "gpr_or_fpr_operand" "%d,f") (ior:SI (match_operand:SI 1 "gpr_or_fpr_operand" "%d,f")
...@@ -3587,7 +3587,7 @@ ...@@ -3587,7 +3587,7 @@
"" ""
"") "")
;; Exclusive OR, 32 bit integers ;; Exclusive OR, 32-bit integers
(define_insn "xorsi3_media" (define_insn "xorsi3_media"
[(set (match_operand:SI 0 "gpr_or_fpr_operand" "=d,f") [(set (match_operand:SI 0 "gpr_or_fpr_operand" "=d,f")
(xor:SI (match_operand:SI 1 "gpr_or_fpr_operand" "%d,f") (xor:SI (match_operand:SI 1 "gpr_or_fpr_operand" "%d,f")
...@@ -3615,7 +3615,7 @@ ...@@ -3615,7 +3615,7 @@
"" ""
"") "")
;; One's complement, 32 bit integers ;; One's complement, 32-bit integers
(define_insn "one_cmplsi2_media" (define_insn "one_cmplsi2_media"
[(set (match_operand:SI 0 "gpr_or_fpr_operand" "=d,f") [(set (match_operand:SI 0 "gpr_or_fpr_operand" "=d,f")
(not:SI (match_operand:SI 1 "gpr_or_fpr_operand" "d,f")))] (not:SI (match_operand:SI 1 "gpr_or_fpr_operand" "d,f")))]
...@@ -3643,11 +3643,11 @@ ...@@ -3643,11 +3643,11 @@
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; :: ;; ::
;; :: 64 Bit Integer Logical operations ;; :: 64-Bit Integer Logical operations
;; :: ;; ::
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; Logical AND, 64 bit integers ;; Logical AND, 64-bit integers
;; (define_insn "anddi3" ;; (define_insn "anddi3"
;; [(set (match_operand:DI 0 "register_operand" "=r") ;; [(set (match_operand:DI 0 "register_operand" "=r")
;; (and:DI (match_operand:DI 1 "register_operand" "%r") ;; (and:DI (match_operand:DI 1 "register_operand" "%r")
...@@ -3656,7 +3656,7 @@ ...@@ -3656,7 +3656,7 @@
;; "anddi3 %0,%1,%2" ;; "anddi3 %0,%1,%2"
;; [(set_attr "length" "4")]) ;; [(set_attr "length" "4")])
;; Inclusive OR, 64 bit integers ;; Inclusive OR, 64-bit integers
;; (define_insn "iordi3" ;; (define_insn "iordi3"
;; [(set (match_operand:DI 0 "register_operand" "=r") ;; [(set (match_operand:DI 0 "register_operand" "=r")
;; (ior:DI (match_operand:DI 1 "register_operand" "%r") ;; (ior:DI (match_operand:DI 1 "register_operand" "%r")
...@@ -3665,7 +3665,7 @@ ...@@ -3665,7 +3665,7 @@
;; "iordi3 %0,%1,%2" ;; "iordi3 %0,%1,%2"
;; [(set_attr "length" "4")]) ;; [(set_attr "length" "4")])
;; Exclusive OR, 64 bit integers ;; Exclusive OR, 64-bit integers
;; (define_insn "xordi3" ;; (define_insn "xordi3"
;; [(set (match_operand:DI 0 "register_operand" "=r") ;; [(set (match_operand:DI 0 "register_operand" "=r")
;; (xor:DI (match_operand:DI 1 "register_operand" "%r") ;; (xor:DI (match_operand:DI 1 "register_operand" "%r")
...@@ -3674,7 +3674,7 @@ ...@@ -3674,7 +3674,7 @@
;; "xordi3 %0,%1,%2" ;; "xordi3 %0,%1,%2"
;; [(set_attr "length" "4")]) ;; [(set_attr "length" "4")])
;; One's complement, 64 bit integers ;; One's complement, 64-bit integers
;; (define_insn "one_cmpldi2" ;; (define_insn "one_cmpldi2"
;; [(set (match_operand:DI 0 "register_operand" "=r") ;; [(set (match_operand:DI 0 "register_operand" "=r")
;; (not:DI (match_operand:DI 1 "register_operand" "r")))] ;; (not:DI (match_operand:DI 1 "register_operand" "r")))]
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
return FALSE; return FALSE;
}) })
;; Return 1 if operand is a GPR register or 12 bit signed immediate. ;; Return 1 if operand is a GPR register or 12-bit signed immediate.
(define_predicate "gpr_or_int12_operand" (define_predicate "gpr_or_int12_operand"
(match_code "reg,subreg,const_int,const") (match_code "reg,subreg,const_int,const")
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
return FALSE; return FALSE;
}) })
;; Return 1 if operand is a register or 10 bit signed immediate. ;; Return 1 if operand is a register or 10-bit signed immediate.
(define_predicate "gpr_or_int10_operand" (define_predicate "gpr_or_int10_operand"
(match_code "reg,subreg,const_int") (match_code "reg,subreg,const_int")
...@@ -486,7 +486,7 @@ ...@@ -486,7 +486,7 @@
|| frv_legitimate_memory_operand (op, mode, FALSE)); || frv_legitimate_memory_operand (op, mode, FALSE));
}) })
;; Return 1 if operand is a 12 bit signed immediate. ;; Return 1 if operand is a 12-bit signed immediate.
(define_predicate "int12_operand" (define_predicate "int12_operand"
(match_code "const_int") (match_code "const_int")
...@@ -1110,7 +1110,7 @@ ...@@ -1110,7 +1110,7 @@
return ((INTVAL (op) & 0xffff) == 0); return ((INTVAL (op) & 0xffff) == 0);
}) })
;; Return 1 if operand is a 16 bit unsigned immediate. ;; Return 1 if operand is a 16-bit unsigned immediate.
(define_predicate "uint16_operand" (define_predicate "uint16_operand"
(match_code "const_int") (match_code "const_int")
...@@ -1445,7 +1445,7 @@ ...@@ -1445,7 +1445,7 @@
} }
}) })
;; Return 1 if operand is a register or 6 bit signed immediate. ;; Return 1 if operand is a register or 6-bit signed immediate.
(define_predicate "fpr_or_int6_operand" (define_predicate "fpr_or_int6_operand"
(match_code "reg,subreg,const_int") (match_code "reg,subreg,const_int")
...@@ -1470,7 +1470,7 @@ ...@@ -1470,7 +1470,7 @@
return FPR_OR_PSEUDO_P (REGNO (op)); return FPR_OR_PSEUDO_P (REGNO (op));
}) })
;; Return 1 if operand is a 6 bit signed immediate. ;; Return 1 if operand is a 6-bit signed immediate.
(define_predicate "int6_operand" (define_predicate "int6_operand"
(match_code "const_int") (match_code "const_int")
...@@ -1481,7 +1481,7 @@ ...@@ -1481,7 +1481,7 @@
return IN_RANGE_P (INTVAL (op), -32, 31); return IN_RANGE_P (INTVAL (op), -32, 31);
}) })
;; Return 1 if operand is a 5 bit signed immediate. ;; Return 1 if operand is a 5-bit signed immediate.
(define_predicate "int5_operand" (define_predicate "int5_operand"
(match_code "const_int") (match_code "const_int")
...@@ -1489,7 +1489,7 @@ ...@@ -1489,7 +1489,7 @@
return GET_CODE (op) == CONST_INT && IN_RANGE_P (INTVAL (op), -16, 15); return GET_CODE (op) == CONST_INT && IN_RANGE_P (INTVAL (op), -16, 15);
}) })
;; Return 1 if operand is a 5 bit unsigned immediate. ;; Return 1 if operand is a 5-bit unsigned immediate.
(define_predicate "uint5_operand" (define_predicate "uint5_operand"
(match_code "const_int") (match_code "const_int")
...@@ -1497,7 +1497,7 @@ ...@@ -1497,7 +1497,7 @@
return GET_CODE (op) == CONST_INT && IN_RANGE_P (INTVAL (op), 0, 31); return GET_CODE (op) == CONST_INT && IN_RANGE_P (INTVAL (op), 0, 31);
}) })
;; Return 1 if operand is a 4 bit unsigned immediate. ;; Return 1 if operand is a 4-bit unsigned immediate.
(define_predicate "uint4_operand" (define_predicate "uint4_operand"
(match_code "const_int") (match_code "const_int")
...@@ -1505,7 +1505,7 @@ ...@@ -1505,7 +1505,7 @@
return GET_CODE (op) == CONST_INT && IN_RANGE_P (INTVAL (op), 0, 15); return GET_CODE (op) == CONST_INT && IN_RANGE_P (INTVAL (op), 0, 15);
}) })
;; Return 1 if operand is a 1 bit unsigned immediate (0 or 1). ;; Return 1 if operand is a 1-bit unsigned immediate (0 or 1).
(define_predicate "uint1_operand" (define_predicate "uint1_operand"
(match_code "const_int") (match_code "const_int")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment