1 ;; Constraint definitions for Visium.
2 ;; Copyright (C) 2006-2018 Free Software Foundation, Inc.
4 ;; This file is part of GCC.
6 ;; GCC is free software; you can redistribute it and/or modify
7 ;; it under the terms of the GNU General Public License as published by
8 ;; the Free Software Foundation; either version 3, or (at your option)
11 ;; GCC is distributed in the hope that it will be useful,
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;; GNU General Public License for more details.
16 ;; You should have received a copy of the GNU General Public License
17 ;; along with GCC; see the file COPYING3. If not see
18 ;; <http://www.gnu.org/licenses/>.
20 ;; Register constraints
22 (define_register_constraint "b" "MDB"
25 (define_register_constraint "c" "MDC"
28 (define_register_constraint "f" "TARGET_FPU ? FP_REGS : NO_REGS"
29 "Floating point register")
31 (define_register_constraint "k" "SIBCALL_REGS"
32 "Register for sibcall optimization")
34 (define_register_constraint "l" "LOW_REGS"
35 "General register, but not r29, r30 and r31")
37 (define_register_constraint "t" "R1"
40 (define_register_constraint "u" "R2"
43 (define_register_constraint "v" "R3"
46 ;; Immediate integer operand constraints
48 (define_constraint "J"
49 "Integer constant in the range 0 .. 65535 (16-bit immediate)"
50 (and (match_code "const_int")
51 (match_test "IN_RANGE (ival, 0, 65535)")))
53 (define_constraint "K"
54 "Integer constant in the range 1 .. 31 (5-bit immediate)"
55 (and (match_code "const_int")
56 (match_test "IN_RANGE (ival, 1, 31)")))
58 (define_constraint "L"
59 "Integer constant in the range -65535 .. -1 (16-bit negative immediate)"
60 (and (match_code "const_int")
61 (match_test "IN_RANGE (ival, -65535, -1)")))
63 (define_constraint "M"
65 (and (match_code "const_int")
66 (match_test "ival == -1")))
68 (define_constraint "O"
70 (and (match_code "const_int")
71 (match_test "ival == 0")))
73 (define_constraint "P"
75 (and (match_code "const_int")
76 (match_test "ival == 32")))
78 ;; Immediate FP operand constraints
80 (define_constraint "G"
81 "Floating-point constant 0.0"
82 (and (match_code "const_double")
83 (match_test "op == CONST0_RTX (mode)")))