1;; Iterator definitions for GCC SH machine description files. 2;; Copyright (C) 2012-2021 Free Software Foundation, Inc. 3;; 4;; This file is part of GCC. 5;; 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) 9;; any later version. 10;; 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. 15;; 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/>. 19 20(define_mode_iterator QIHISIDI [QI HI SI DI]) 21(define_mode_iterator QIHISI [QI HI SI]) 22(define_mode_iterator QIHI [QI HI]) 23(define_mode_iterator HISI [HI SI]) 24(define_mode_iterator SIDI [SI DI]) 25 26;; Mode attributes that can be used as the instruction suffix for mode 27;; variant instructions. 28(define_mode_attr bw [(QI "b") (HI "w")]) 29(define_mode_attr bwl [(QI "b") (HI "w") (SI "l")]) 30 31;; Sign/zero-extension code iterator. 32(define_code_iterator SZ_EXTEND [sign_extend zero_extend]) 33 34;; Mode attributes for mov.b and mov.w displacement constraints. 35(define_mode_attr disp04 [(QI "K04") (HI "K05")]) 36(define_mode_attr disp12 [(QI "K12") (HI "K13")]) 37 38;; Return codes. 39(define_code_iterator any_return [return simple_return]) 40 41;; Lowpart subreg byte position code attributes for big and little endian. 42(define_mode_attr lowpart_be [(QI "3") (HI "2")]) 43(define_mode_attr lowpart_le [(QI "0") (HI "0")]) 44 45;; Signed minimum/maximum code iterator. 46(define_code_iterator SMIN_SMAX [smin smax]) 47