OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [fr30/] [constraints.md] - Blame information for rev 709

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 jeremybenn
;; Constraint definitions for the FR30.
2
;; Copyright (C) 2011
3
;; Free Software Foundation, Inc.
4
 
5
;; This file is part of GCC.
6
 
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)
10
;; any later version.
11
 
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.
16
 
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
;; .
20
 
21
;; Register constraints.
22
(define_register_constraint "d" "MULTIPLY_64_REG"
23
  "The MDH,MDL register pair as used by MUL and MULU.")
24
 
25
(define_register_constraint "e" "MULTIPLY_32_REG"
26
  "The MDL register as used by MULH and MULUH.")
27
 
28
(define_register_constraint "h" "HIGH_REGS"
29
  "Registers 8 through 15.")
30
 
31
(define_register_constraint "l" "LOW_REGS"
32
  "Registers 0 through 7.")
33
 
34
(define_register_constraint "a" "ALL_REGS"
35
  "@internal")
36
 
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)")))
42
 
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)")))
47
 
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)")))
52
 
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)")))
57
 
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)")))
62
 
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)")))
67
 
68
;; Extra constraints.
69
(define_constraint "Q"
70
  "@internal"
71
  (and (match_code "mem")
72
       (match_code "symbol_ref" "0")))

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.