1 ;; Constraint definitions for the FR30.
3 ;; Free Software Foundation, Inc.
5 ;; This file is part of GCC.
7 ;; GCC is free software; you can redistribute it and/or modify
8 ;; it under the terms of the GNU General Public License as published by
9 ;; the Free Software Foundation; either version 3, or (at your option)
12 ;; GCC is distributed in the hope that it will be useful,
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;; GNU General Public License for more details.
17 ;; You should have received a copy of the GNU General Public License
18 ;; along with GCC; see the file COPYING3. If not see
19 ;; <http://www.gnu.org/licenses/>.
21 ;; Register constraints.
22 (define_register_constraint "d" "MULTIPLY_64_REG"
23 "The MDH,MDL register pair as used by MUL and MULU.")
25 (define_register_constraint "e" "MULTIPLY_32_REG"
26 "The MDL register as used by MULH and MULUH.")
28 (define_register_constraint "h" "HIGH_REGS"
29 "Registers 8 through 15.")
31 (define_register_constraint "l" "LOW_REGS"
32 "Registers 0 through 7.")
34 (define_register_constraint "a" "ALL_REGS"
37 ;; Integer constraints.
38 (define_constraint "I"
39 "An integer in the range 0 to 15."
40 (and (match_code "const_int")
41 (match_test "IN_RANGE (ival, 0, 15)")))
43 (define_constraint "J"
44 "An integer in the range -16 to -1."
45 (and (match_code "const_int")
46 (match_test "IN_RANGE (ival, -16, -1)")))
48 (define_constraint "K"
49 "An integer in the range 16 to 31."
50 (and (match_code "const_int")
51 (match_test "IN_RANGE (ival, 16, 31)")))
53 (define_constraint "L"
54 "An integer in the range 0 to 255."
55 (and (match_code "const_int")
56 (match_test "IN_RANGE (ival, 0, 255)")))
58 (define_constraint "M"
59 "An integer in the range 0 to 1048575."
60 (and (match_code "const_int")
61 (match_test "IN_RANGE (ival, 0, 1048575)")))
63 (define_constraint "P"
64 "An integer in the range -256 to 255."
65 (and (match_code "const_int")
66 (match_test "IN_RANGE (ival, -256, 255)")))
69 (define_constraint "Q"
71 (and (match_code "mem")
72 (match_code "symbol_ref" "0")))