OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [config/] [or32/] [constraints.md] - Blame information for rev 400

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 400 jeremybenn
;; Copyright (C) 2010 Embecosm Limited
2
;;
3
;; Contributed by Joern Rennecke  in 2010
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
(define_constraint "I"
22
  ""
23
  (and (match_code "const_int")
24
       (match_test "ival >= -32768 && ival <= 32767")))
25
 
26
(define_constraint "J"
27
  ""
28
  (and (match_code "const_int")
29
       (match_test "ival == 0")))
30
 
31
(define_constraint "K"
32
  ""
33
  (and (match_code "const_int")
34
       (match_test "ival >= 0 && ival <= 65535")))
35
 
36
(define_constraint "L"
37
  ""
38
  (and (match_code "const_int")
39
       (match_test "ival >= 0 && ival <= 31")))
40
 
41
(define_constraint "M"
42
  ""
43
  (and (match_code "const_int")
44
       (match_test "(ival & 0xffff) == 0")))
45
 
46
(define_constraint "N"
47
  ""
48
  (and (match_code "const_int")
49
       (match_test "ival >= -33554432 && ival <= 33554431")))
50
 
51
(define_constraint "O"
52
  ""
53
  (and (match_code "const_int")
54
       (match_test "ival == 0")))
55
 
56
(define_constraint "C"
57
  ""
58
  (match_code "const_double"))
59
 
60
(define_constraint "Rsc"
61
  "@internal
62
   Registers that can be used unproblematically for a sibling call"
63
  (and (match_code "REG")
64
       (match_test "!(or32_save_reg_p_cached (REGNO (op)))")))

powered by: WebSVN 2.1.0

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