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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [config/] [alpha/] [constraints.md] - Diff between revs 282 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 282 Rev 384
;; Constraint definitions for DEC Alpha.
;; Constraint definitions for DEC Alpha.
;; Copyright (C) 2007 Free Software Foundation, Inc.
;; Copyright (C) 2007 Free Software Foundation, Inc.
;;
;;
;; This file is part of GCC.
;; This file is part of GCC.
;;
;;
;; GCC is free software; you can redistribute it and/or modify
;; GCC is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;; any later version.
;;
;;
;; GCC is distributed in the hope that it will be useful,
;; GCC is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;; GNU General Public License for more details.
;;
;;
;; You should have received a copy of the GNU General Public License
;; You should have received a copy of the GNU General Public License
;; along with GCC; see the file COPYING3.  If not see
;; along with GCC; see the file COPYING3.  If not see
;; .
;; .
;;; Unused letters:
;;; Unused letters:
;;;    ABCDEF               V  YZ
;;;    ABCDEF               V  YZ
;;;       de ghijklmnopq stu wxyz
;;;       de ghijklmnopq stu wxyz
;; Integer register constraints.
;; Integer register constraints.
(define_register_constraint "a" "R24_REG"
(define_register_constraint "a" "R24_REG"
 "General register 24, input to division routine")
 "General register 24, input to division routine")
(define_register_constraint "b" "R25_REG"
(define_register_constraint "b" "R25_REG"
 "General register 24, input to division routine")
 "General register 24, input to division routine")
(define_register_constraint "c" "R27_REG"
(define_register_constraint "c" "R27_REG"
 "General register 27, function call address")
 "General register 27, function call address")
(define_register_constraint "f" "FLOAT_REGS"
(define_register_constraint "f" "FLOAT_REGS"
 "Any floating-point register")
 "Any floating-point register")
(define_register_constraint "v" "R0_REG"
(define_register_constraint "v" "R0_REG"
 "General register 0, function value return address")
 "General register 0, function value return address")
;; Integer constant constraints.
;; Integer constant constraints.
(define_constraint "I"
(define_constraint "I"
  "An unsigned 8 bit constant"
  "An unsigned 8 bit constant"
  (and (match_code "const_int")
  (and (match_code "const_int")
       (match_test "IN_RANGE (ival, 0, 255)")))
       (match_test "IN_RANGE (ival, 0, 255)")))
(define_constraint "J"
(define_constraint "J"
  "The constant zero"
  "The constant zero"
  (and (match_code "const_int")
  (and (match_code "const_int")
       (match_test "ival == 0")))
       (match_test "ival == 0")))
(define_constraint "K"
(define_constraint "K"
  "Signed 16-bit integer constant"
  "Signed 16-bit integer constant"
  (and (match_code "const_int")
  (and (match_code "const_int")
       (match_test "IN_RANGE (ival, -32768, 32767)")))
       (match_test "IN_RANGE (ival, -32768, 32767)")))
(define_constraint "L"
(define_constraint "L"
  "A shifted signed 16-bit constant appropriate for LDAH"
  "A shifted signed 16-bit constant appropriate for LDAH"
  (and (match_code "const_int")
  (and (match_code "const_int")
       (match_test "(ival & 0xffff) == 0
       (match_test "(ival & 0xffff) == 0
                    && (ival >> 31 == -1 || ival >> 31 == 0)")))
                    && (ival >> 31 == -1 || ival >> 31 == 0)")))
(define_constraint "M"
(define_constraint "M"
  "A valid operand of a ZAP insn"
  "A valid operand of a ZAP insn"
  (and (match_code "const_int")
  (and (match_code "const_int")
       (match_test "zap_mask (ival) != 0")))
       (match_test "zap_mask (ival) != 0")))
(define_constraint "N"
(define_constraint "N"
  "A complemented unsigned 8-bit constant"
  "A complemented unsigned 8-bit constant"
  (and (match_code "const_int")
  (and (match_code "const_int")
       (match_test "IN_RANGE (~ival, 0, 255)")))
       (match_test "IN_RANGE (~ival, 0, 255)")))
(define_constraint "O"
(define_constraint "O"
  "A negated unsigned 8-bit constant"
  "A negated unsigned 8-bit constant"
  (and (match_code "const_int")
  (and (match_code "const_int")
       (match_test "IN_RANGE (-ival, 0, 255)")))
       (match_test "IN_RANGE (-ival, 0, 255)")))
(define_constraint "P"
(define_constraint "P"
  "The constant 1, 2 or 3"
  "The constant 1, 2 or 3"
  (and (match_code "const_int")
  (and (match_code "const_int")
       (match_test "ival == 1 || ival == 2 || ival == 3")))
       (match_test "ival == 1 || ival == 2 || ival == 3")))
(define_constraint "H"
(define_constraint "H"
  "A valid operand of a ZAP insn, when building with 32-bit HOST_WIDE_INT"
  "A valid operand of a ZAP insn, when building with 32-bit HOST_WIDE_INT"
  (and (match_code "const_double")
  (and (match_code "const_double")
       (match_test "mode == VOIDmode && zap_mask (hval) && zap_mask (lval)")))
       (match_test "mode == VOIDmode && zap_mask (hval) && zap_mask (lval)")))
;; Floating-point constant constraints.
;; Floating-point constant constraints.
(define_constraint "G"
(define_constraint "G"
  "The floating point zero constant"
  "The floating point zero constant"
  (and (match_code "const_double")
  (and (match_code "const_double")
       (match_test "GET_MODE_CLASS (mode) == MODE_FLOAT
       (match_test "GET_MODE_CLASS (mode) == MODE_FLOAT
                    && op == CONST0_RTX (mode)")))
                    && op == CONST0_RTX (mode)")))
;; "Extra" constraints.
;; "Extra" constraints.
(define_constraint "Q"
(define_constraint "Q"
  "@internal A normal_memory_operand"
  "@internal A normal_memory_operand"
  (match_operand 0 "normal_memory_operand"))
  (match_operand 0 "normal_memory_operand"))
(define_constraint "R"
(define_constraint "R"
  "@internal A direct_call_operand"
  "@internal A direct_call_operand"
  (match_operand:DI 0 "direct_call_operand"))
  (match_operand:DI 0 "direct_call_operand"))
(define_constraint "S"
(define_constraint "S"
  "An unsigned 6-bit constant"
  "An unsigned 6-bit constant"
  (and (match_code "const_int")
  (and (match_code "const_int")
       (match_test "IN_RANGE (ival, 0, 63)")))
       (match_test "IN_RANGE (ival, 0, 63)")))
(define_constraint "T"
(define_constraint "T"
  "@internal A high-part symbol"
  "@internal A high-part symbol"
  (match_code "high"))
  (match_code "high"))
(define_constraint "U"
(define_constraint "U"
  "@internal A UNICOSMK symbol"
  "@internal A UNICOSMK symbol"
  (and (match_test "TARGET_ABI_UNICOSMK")
  (and (match_test "TARGET_ABI_UNICOSMK")
       (match_operand 0 "symbolic_operand")))
       (match_operand 0 "symbolic_operand")))
(define_constraint "W"
(define_constraint "W"
  "A vector zero constant"
  "A vector zero constant"
  (and (match_code "const_vector")
  (and (match_code "const_vector")
       (match_test "op == CONST0_RTX (mode)")))
       (match_test "op == CONST0_RTX (mode)")))
 
 

powered by: WebSVN 2.1.0

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