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