annotate gcc/config/visium/constraints.md @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ;; Constraint definitions for Visium.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 ;; Copyright (C) 2006-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 ;;
kono
parents:
diff changeset
4 ;; This file is part of GCC.
kono
parents:
diff changeset
5 ;;
kono
parents:
diff changeset
6 ;; GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
7 ;; it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
8 ;; the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
9 ;; any later version.
kono
parents:
diff changeset
10 ;;
kono
parents:
diff changeset
11 ;; GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
14 ;; GNU General Public License for more details.
kono
parents:
diff changeset
15 ;;
kono
parents:
diff changeset
16 ;; You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 ;; along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 ;; <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 ;; Register constraints
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 (define_register_constraint "b" "MDB"
kono
parents:
diff changeset
23 "EAM register mdb")
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 (define_register_constraint "c" "MDC"
kono
parents:
diff changeset
26 "EAM register mdc")
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 (define_register_constraint "f" "TARGET_FPU ? FP_REGS : NO_REGS"
kono
parents:
diff changeset
29 "Floating point register")
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 (define_register_constraint "k" "SIBCALL_REGS"
kono
parents:
diff changeset
32 "Register for sibcall optimization")
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 (define_register_constraint "l" "LOW_REGS"
kono
parents:
diff changeset
35 "General register, but not r29, r30 and r31")
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 (define_register_constraint "t" "R1"
kono
parents:
diff changeset
38 "Register r1")
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 (define_register_constraint "u" "R2"
kono
parents:
diff changeset
41 "Register r2")
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 (define_register_constraint "v" "R3"
kono
parents:
diff changeset
44 "Register r3")
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 ;; Immediate integer operand constraints
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 (define_constraint "J"
kono
parents:
diff changeset
49 "Integer constant in the range 0 .. 65535 (16-bit immediate)"
kono
parents:
diff changeset
50 (and (match_code "const_int")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
51 (match_test "IN_RANGE (ival, 0, 65535)")))
111
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 (define_constraint "K"
kono
parents:
diff changeset
54 "Integer constant in the range 1 .. 31 (5-bit immediate)"
kono
parents:
diff changeset
55 (and (match_code "const_int")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
56 (match_test "IN_RANGE (ival, 1, 31)")))
111
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 (define_constraint "L"
kono
parents:
diff changeset
59 "Integer constant in the range -65535 .. -1 (16-bit negative immediate)"
kono
parents:
diff changeset
60 (and (match_code "const_int")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
61 (match_test "IN_RANGE (ival, -65535, -1)")))
111
kono
parents:
diff changeset
62
kono
parents:
diff changeset
63 (define_constraint "M"
kono
parents:
diff changeset
64 "Integer constant -1"
kono
parents:
diff changeset
65 (and (match_code "const_int")
kono
parents:
diff changeset
66 (match_test "ival == -1")))
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 (define_constraint "O"
kono
parents:
diff changeset
69 "Integer constant 0"
kono
parents:
diff changeset
70 (and (match_code "const_int")
kono
parents:
diff changeset
71 (match_test "ival == 0")))
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 (define_constraint "P"
kono
parents:
diff changeset
74 "Integer constant 32"
kono
parents:
diff changeset
75 (and (match_code "const_int")
kono
parents:
diff changeset
76 (match_test "ival == 32")))
kono
parents:
diff changeset
77
kono
parents:
diff changeset
78 ;; Immediate FP operand constraints
kono
parents:
diff changeset
79
kono
parents:
diff changeset
80 (define_constraint "G"
kono
parents:
diff changeset
81 "Floating-point constant 0.0"
kono
parents:
diff changeset
82 (and (match_code "const_double")
kono
parents:
diff changeset
83 (match_test "op == CONST0_RTX (mode)")))