annotate gcc/config/sh/iterators.md @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ;; Iterator definitions for GCC SH machine description files.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 ;; Copyright (C) 2012-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 ;;
kono
parents:
diff changeset
4 ;; This file is part of GCC.
kono
parents:
diff changeset
5 ;;
kono
parents:
diff changeset
6 ;; GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
7 ;; it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
8 ;; the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
9 ;; any later version.
kono
parents:
diff changeset
10 ;;
kono
parents:
diff changeset
11 ;; GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
14 ;; GNU General Public License for more details.
kono
parents:
diff changeset
15 ;;
kono
parents:
diff changeset
16 ;; You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 ;; along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 ;; <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 (define_mode_iterator QIHISIDI [QI HI SI DI])
kono
parents:
diff changeset
21 (define_mode_iterator QIHISI [QI HI SI])
kono
parents:
diff changeset
22 (define_mode_iterator QIHI [QI HI])
kono
parents:
diff changeset
23 (define_mode_iterator HISI [HI SI])
kono
parents:
diff changeset
24 (define_mode_iterator SIDI [SI DI])
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 ;; Mode attributes that can be used as the instruction suffix for mode
kono
parents:
diff changeset
27 ;; variant instructions.
kono
parents:
diff changeset
28 (define_mode_attr bw [(QI "b") (HI "w")])
kono
parents:
diff changeset
29 (define_mode_attr bwl [(QI "b") (HI "w") (SI "l")])
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 ;; Sign/zero-extension code iterator.
kono
parents:
diff changeset
32 (define_code_iterator SZ_EXTEND [sign_extend zero_extend])
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 ;; Mode attributes for mov.b and mov.w displacement constraints.
kono
parents:
diff changeset
35 (define_mode_attr disp04 [(QI "K04") (HI "K05")])
kono
parents:
diff changeset
36 (define_mode_attr disp12 [(QI "K12") (HI "K13")])
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 ;; Return codes.
kono
parents:
diff changeset
39 (define_code_iterator any_return [return simple_return])
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 ;; Lowpart subreg byte position code attributes for big and little endian.
kono
parents:
diff changeset
42 (define_mode_attr lowpart_be [(QI "3") (HI "2")])
kono
parents:
diff changeset
43 (define_mode_attr lowpart_le [(QI "0") (HI "0")])
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 ;; Signed minimum/maximum code iterator.
kono
parents:
diff changeset
46 (define_code_iterator SMIN_SMAX [smin smax])