annotate gcc/config/arm/iterators.md @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 ;; Code and mode itertator and attribute definitions for the ARM backend
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 ;; Copyright (C) 2010-2020 Free Software Foundation, Inc.
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 ;; Contributed by ARM Ltd.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 ;;
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 ;; This file is part of GCC.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 ;;
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 ;; GCC is free software; you can redistribute it and/or modify it
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 ;; under the terms of the GNU General Public License as published
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 ;; by the Free Software Foundation; either version 3, or (at your
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 ;; option) any later version.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 ;; GCC is distributed in the hope that it will be useful, but WITHOUT
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 ;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 ;; License for more details.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 ;; You should have received a copy of the GNU General Public License
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 ;; along with GCC; see the file COPYING3. If not see
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 ;; <http://www.gnu.org/licenses/>.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 ;;----------------------------------------------------------------------------
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 ;; Mode iterators
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 ;;----------------------------------------------------------------------------
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 ;; A list of modes that are exactly 64 bits in size. This is used to expand
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
27 ;; some splits that are the same for all modes when operating on ARM
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 ;; registers.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
29 (define_mode_iterator ANY64 [DI DF V8QI V4HI V4HF V2SI V2SF])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
30
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
31 ;; Additional definition of ANY64 that also includes the special V4BF mode.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
32 ;; BFmode is allowed only on define_split between ARM registers.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
33 (define_mode_iterator ANY64_BF [DI DF V8QI V4HI V4BF V4HF V2SI V2SF])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 (define_mode_iterator ANY128 [V2DI V2DF V16QI V8HI V4SI V4SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 ;; A list of integer modes that are up to one word long
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 (define_mode_iterator QHSI [QI HI SI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39
111
kono
parents: 68
diff changeset
40 ;; A list of integer modes that are half and one word long
kono
parents: 68
diff changeset
41 (define_mode_iterator HSI [HI SI])
kono
parents: 68
diff changeset
42
kono
parents: 68
diff changeset
43 ;; A list of integer modes that are less than a word
kono
parents: 68
diff changeset
44 (define_mode_iterator NARROW [QI HI])
kono
parents: 68
diff changeset
45
kono
parents: 68
diff changeset
46 ;; A list of all the integer modes up to 64bit
kono
parents: 68
diff changeset
47 (define_mode_iterator QHSD [QI HI SI DI])
kono
parents: 68
diff changeset
48
kono
parents: 68
diff changeset
49 ;; A list of the 32bit and 64bit integer modes
kono
parents: 68
diff changeset
50 (define_mode_iterator SIDI [SI DI])
kono
parents: 68
diff changeset
51
kono
parents: 68
diff changeset
52 ;; A list of atomic compare and swap success return modes
kono
parents: 68
diff changeset
53 (define_mode_iterator CCSI [(CC_Z "TARGET_32BIT") (SI "TARGET_THUMB1")])
kono
parents: 68
diff changeset
54
kono
parents: 68
diff changeset
55 ;; A list of modes which the VFP unit can handle
kono
parents: 68
diff changeset
56 (define_mode_iterator SDF [(SF "") (DF "TARGET_VFP_DOUBLE")])
kono
parents: 68
diff changeset
57
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 ;; Integer element sizes implemented by IWMMXT.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 (define_mode_iterator VMMX [V2SI V4HI V8QI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60
111
kono
parents: 68
diff changeset
61 (define_mode_iterator VMMX2 [V4HI V2SI])
kono
parents: 68
diff changeset
62
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 ;; Integer element sizes for shifts.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 (define_mode_iterator VSHFT [V4HI V2SI DI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
65
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 ;; Integer and float modes supported by Neon and IWMMXT.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 (define_mode_iterator VALL [V2DI V2SI V4HI V8QI V2SF V4SI V8HI V16QI V4SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 ;; Integer and float modes supported by Neon and IWMMXT, except V2DI.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 (define_mode_iterator VALLW [V2SI V4HI V8QI V2SF V4SI V8HI V16QI V4SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
71
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 ;; Integer modes supported by Neon and IWMMXT
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 (define_mode_iterator VINT [V2DI V2SI V4HI V8QI V4SI V8HI V16QI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
74
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 ;; Integer modes supported by Neon and IWMMXT, except V2DI
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
76 (define_mode_iterator VINTW [V2SI V4HI V8QI V4SI V8HI V16QI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
77
111
kono
parents: 68
diff changeset
78 ;; Double-width vector modes, on which we support arithmetic (no HF!)
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 (define_mode_iterator VD [V8QI V4HI V2SI V2SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
80
111
kono
parents: 68
diff changeset
81 ;; Double-width vector modes plus 64-bit elements for vreinterpret + vcreate.
kono
parents: 68
diff changeset
82 (define_mode_iterator VD_RE [V8QI V4HI V2SI V2SF DI])
kono
parents: 68
diff changeset
83
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 ;; Double-width vector modes plus 64-bit elements.
111
kono
parents: 68
diff changeset
85 (define_mode_iterator VDX [V8QI V4HI V4HF V2SI V2SF DI])
kono
parents: 68
diff changeset
86
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
87 ;; Double-width vector modes plus 64-bit elements,
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
88 ;; with V4BFmode added, suitable for moves.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
89 (define_mode_iterator VDXMOV [V8QI V4HI V4HF V4BF V2SI V2SF DI])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
90
111
kono
parents: 68
diff changeset
91 ;; Double-width vector modes, with V4HF - for vldN_lane and vstN_lane.
kono
parents: 68
diff changeset
92 (define_mode_iterator VD_LANE [V8QI V4HI V4HF V2SI V2SF])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 ;; Double-width vector modes without floating-point elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 (define_mode_iterator VDI [V8QI V4HI V2SI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
96
111
kono
parents: 68
diff changeset
97 ;; Quad-width vector modes supporting arithmetic (no HF!).
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 (define_mode_iterator VQ [V16QI V8HI V4SI V4SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
99
111
kono
parents: 68
diff changeset
100 ;; Quad-width vector modes, including V8HF.
kono
parents: 68
diff changeset
101 (define_mode_iterator VQ2 [V16QI V8HI V8HF V4SI V4SF])
kono
parents: 68
diff changeset
102
kono
parents: 68
diff changeset
103 ;; Quad-width vector modes with 16- or 32-bit elements
kono
parents: 68
diff changeset
104 (define_mode_iterator VQ_HS [V8HI V8HF V4SI V4SF])
kono
parents: 68
diff changeset
105
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 ;; Quad-width vector modes plus 64-bit elements.
111
kono
parents: 68
diff changeset
107 (define_mode_iterator VQX [V16QI V8HI V8HF V4SI V4SF V2DI])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
108
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 ;; Quad-width vector modes without floating-point elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 (define_mode_iterator VQI [V16QI V8HI V4SI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
111
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
112 ;; Quad-width vector modes, with TImode and V8BFmode added, suitable for moves.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
113 (define_mode_iterator VQXMOV [V16QI V8HI V8HF V8BF V4SI V4SF V2DI TI])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
114
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 ;; Opaque structure types wider than TImode.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
116 (define_mode_iterator VSTRUCT [EI OI CI XI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
117
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
118 ;; Opaque structure types used in table lookups (except vtbl1/vtbx1).
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
119 (define_mode_iterator VTAB [TI EI OI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
120
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 ;; Widenable modes.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
122 (define_mode_iterator VW [V8QI V4HI V2SI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
123
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
124 ;; Narrowable modes.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
125 (define_mode_iterator VN [V8HI V4SI V2DI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
126
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
127 ;; All supported vector modes (except singleton DImode).
111
kono
parents: 68
diff changeset
128 (define_mode_iterator VDQ [V8QI V16QI V4HI V8HI V2SI V4SI V4HF V8HF V2SF V4SF V2DI])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
129
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
130 ;; All supported floating-point vector modes (except V2DF).
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
131 (define_mode_iterator VF [(V4HF "TARGET_NEON_FP16INST")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
132 (V8HF "TARGET_NEON_FP16INST") V2SF V4SF])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
133
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
134 ;; Double vector modes.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
135 (define_mode_iterator VDF [V2SF V4HF])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
136
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
137 ;; Quad vector Float modes with half/single elements.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
138 (define_mode_iterator VQ_HSF [V8HF V4SF])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
139
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
140
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
141 ;; All supported vector modes (except those with 64-bit integer elements).
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
142 (define_mode_iterator VDQW [V8QI V16QI V4HI V8HI V2SI V4SI V2SF V4SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
143
111
kono
parents: 68
diff changeset
144 ;; All supported vector modes including 16-bit float modes.
kono
parents: 68
diff changeset
145 (define_mode_iterator VDQWH [V8QI V16QI V4HI V8HI V2SI V4SI V2SF V4SF
kono
parents: 68
diff changeset
146 V8HF V4HF])
kono
parents: 68
diff changeset
147
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 ;; Supported integer vector modes (not 64 bit elements).
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
149 (define_mode_iterator VDQIW [V8QI V16QI V4HI V8HI V2SI V4SI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
150
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
151 ;; Supported integer vector modes (not singleton DI)
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
152 (define_mode_iterator VDQI [V8QI V16QI V4HI V8HI V2SI V4SI V2DI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
153
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
154 ;; Vector modes, including 64-bit integer elements.
111
kono
parents: 68
diff changeset
155 (define_mode_iterator VDQX [V8QI V16QI V4HI V8HI V2SI V4SI
kono
parents: 68
diff changeset
156 V4HF V8HF V2SF V4SF DI V2DI])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
157
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
158 ;; Vector modes including 64-bit integer elements, but no floats.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
159 (define_mode_iterator VDQIX [V8QI V16QI V4HI V8HI V2SI V4SI DI V2DI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
160
111
kono
parents: 68
diff changeset
161 ;; Vector modes for H, S and D types.
kono
parents: 68
diff changeset
162 (define_mode_iterator VDQHSD [V4HI V8HI V2SI V4SI V2DI])
kono
parents: 68
diff changeset
163
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
164 ;; Vector modes for float->int conversions.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
165 (define_mode_iterator VCVTF [V2SF V4SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
166
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
167 ;; Vector modes form int->float conversions.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
168 (define_mode_iterator VCVTI [V2SI V4SI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
169
111
kono
parents: 68
diff changeset
170 ;; Vector modes for int->half conversions.
kono
parents: 68
diff changeset
171 (define_mode_iterator VCVTHI [V4HI V8HI])
kono
parents: 68
diff changeset
172
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
173 ;; Vector modes for doubleword multiply-accumulate, etc. insns.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
174 (define_mode_iterator VMD [V4HI V2SI V2SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
175
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
176 ;; Vector modes for quadword multiply-accumulate, etc. insns.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
177 (define_mode_iterator VMQ [V8HI V4SI V4SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
178
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
179 ;; Above modes combined.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
180 (define_mode_iterator VMDQ [V4HI V2SI V2SF V8HI V4SI V4SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
181
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
182 ;; As VMD, but integer modes only.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
183 (define_mode_iterator VMDI [V4HI V2SI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
184
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
185 ;; As VMQ, but integer modes only.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
186 (define_mode_iterator VMQI [V8HI V4SI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
187
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
188 ;; Above modes combined.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
189 (define_mode_iterator VMDQI [V4HI V2SI V8HI V4SI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
190
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 ;; Modes with 8-bit and 16-bit elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
192 (define_mode_iterator VX [V8QI V4HI V16QI V8HI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
193
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
194 ;; Modes with 8-bit elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
195 (define_mode_iterator VE [V8QI V16QI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
196
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
197 ;; V2DI only (for use with @ patterns).
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
198 (define_mode_iterator V2DI_ONLY [V2DI])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
199
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
200 ;; Modes with 64-bit elements only.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
201 (define_mode_iterator V64 [DI V2DI])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
202
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
203 ;; Modes with 32-bit elements only.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
204 (define_mode_iterator V32 [V2SI V2SF V4SI V4SF])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
205
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
206 ;; Modes with 8-bit, 16-bit and 32-bit elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
207 (define_mode_iterator VU [V16QI V8HI V4SI])
111
kono
parents: 68
diff changeset
208
kono
parents: 68
diff changeset
209 ;; Vector modes for 16-bit floating-point support.
kono
parents: 68
diff changeset
210 (define_mode_iterator VH [V8HF V4HF])
kono
parents: 68
diff changeset
211
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
212 ;; 16-bit floating-point vector modes suitable for moving (includes BFmode).
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
213 (define_mode_iterator VHFBF [V8HF V4HF V4BF V8BF])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
214
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
215 ;; 16-bit floating-point scalar modes suitable for moving (includes BFmode).
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
216 (define_mode_iterator HFBF [HF BF])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
217
111
kono
parents: 68
diff changeset
218 ;; Iterators used for fixed-point support.
kono
parents: 68
diff changeset
219 (define_mode_iterator FIXED [QQ HQ SQ UQQ UHQ USQ HA SA UHA USA])
kono
parents: 68
diff changeset
220
kono
parents: 68
diff changeset
221 (define_mode_iterator ADDSUB [V4QQ V2HQ V2HA])
kono
parents: 68
diff changeset
222
kono
parents: 68
diff changeset
223 (define_mode_iterator UQADDSUB [V4UQQ V2UHQ UQQ UHQ V2UHA UHA])
kono
parents: 68
diff changeset
224
kono
parents: 68
diff changeset
225 (define_mode_iterator QADDSUB [V4QQ V2HQ QQ HQ V2HA HA SQ SA])
kono
parents: 68
diff changeset
226
kono
parents: 68
diff changeset
227 (define_mode_iterator QMUL [HQ HA])
kono
parents: 68
diff changeset
228
kono
parents: 68
diff changeset
229 ;; Modes for polynomial or float values.
kono
parents: 68
diff changeset
230 (define_mode_iterator VPF [V8QI V16QI V2SF V4SF])
kono
parents: 68
diff changeset
231
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
232 ;;----------------------------------------------------------------------------
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
233 ;; Code iterators
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
234 ;;----------------------------------------------------------------------------
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
235
111
kono
parents: 68
diff changeset
236 ;; The signed gt, ge comparisons
kono
parents: 68
diff changeset
237 (define_code_iterator GTGE [gt ge])
kono
parents: 68
diff changeset
238
kono
parents: 68
diff changeset
239 ;; The signed gt, ge, lt, le comparisons
kono
parents: 68
diff changeset
240 (define_code_iterator GLTE [gt ge lt le])
kono
parents: 68
diff changeset
241
kono
parents: 68
diff changeset
242 ;; The unsigned gt, ge comparisons
kono
parents: 68
diff changeset
243 (define_code_iterator GTUGEU [gtu geu])
kono
parents: 68
diff changeset
244
kono
parents: 68
diff changeset
245 ;; Comparisons for vc<cmp>
kono
parents: 68
diff changeset
246 (define_code_iterator COMPARISONS [eq gt ge le lt])
kono
parents: 68
diff changeset
247
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
248 ;; A list of ...
111
kono
parents: 68
diff changeset
249 (define_code_iterator IOR_XOR [ior xor])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
250
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
251 (define_code_iterator LOGICAL [and ior xor])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
252
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
253 ;; Operations on two halves of a quadword vector.
111
kono
parents: 68
diff changeset
254 (define_code_iterator VQH_OPS [plus smin smax umin umax])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
255
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
256 ;; Operations on two halves of a quadword vector,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
257 ;; without unsigned variants (for use with *SFmode pattern).
111
kono
parents: 68
diff changeset
258 (define_code_iterator VQHS_OPS [plus smin smax])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
259
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
260 ;; A list of widening operators
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
261 (define_code_iterator SE [sign_extend zero_extend])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
262
111
kono
parents: 68
diff changeset
263 ;; Right shifts
kono
parents: 68
diff changeset
264 (define_code_iterator RSHIFTS [ashiftrt lshiftrt])
kono
parents: 68
diff changeset
265
kono
parents: 68
diff changeset
266 ;; Iterator for integer conversions
kono
parents: 68
diff changeset
267 (define_code_iterator FIXUORS [fix unsigned_fix])
kono
parents: 68
diff changeset
268
kono
parents: 68
diff changeset
269 ;; Binary operators whose second operand can be shifted.
kono
parents: 68
diff changeset
270 (define_code_iterator SHIFTABLE_OPS [plus minus ior xor and])
kono
parents: 68
diff changeset
271
kono
parents: 68
diff changeset
272 ;; Operations on the sign of a number.
kono
parents: 68
diff changeset
273 (define_code_iterator ABSNEG [abs neg])
kono
parents: 68
diff changeset
274
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
275 ;; The PLUS and MINUS operators.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
276 (define_code_iterator PLUSMINUS [plus minus])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
277
111
kono
parents: 68
diff changeset
278 ;; Conversions.
kono
parents: 68
diff changeset
279 (define_code_iterator FCVT [unsigned_float float])
kono
parents: 68
diff changeset
280
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
281 ;; Saturating addition, subtraction
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
282 (define_code_iterator SSPLUSMINUS [ss_plus ss_minus])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
283
111
kono
parents: 68
diff changeset
284 ;; plus and minus are the only SHIFTABLE_OPS for which Thumb2 allows
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
285 ;; a stack pointer operand. The minus operation is a candidate for an rsub
111
kono
parents: 68
diff changeset
286 ;; and hence only plus is supported.
kono
parents: 68
diff changeset
287 (define_code_attr t2_binop0
kono
parents: 68
diff changeset
288 [(plus "rk") (minus "r") (ior "r") (xor "r") (and "r")])
kono
parents: 68
diff changeset
289
kono
parents: 68
diff changeset
290 ;; The instruction to use when a SHIFTABLE_OPS has a shift operation as
kono
parents: 68
diff changeset
291 ;; its first operand.
kono
parents: 68
diff changeset
292 (define_code_attr arith_shift_insn
kono
parents: 68
diff changeset
293 [(plus "add") (minus "rsb") (ior "orr") (xor "eor") (and "and")])
kono
parents: 68
diff changeset
294
kono
parents: 68
diff changeset
295 (define_code_attr cmp_op [(eq "eq") (gt "gt") (ge "ge") (lt "lt") (le "le")
kono
parents: 68
diff changeset
296 (gtu "gt") (geu "ge")])
kono
parents: 68
diff changeset
297
kono
parents: 68
diff changeset
298 (define_code_attr cmp_type [(eq "i") (gt "s") (ge "s") (lt "s") (le "s")])
kono
parents: 68
diff changeset
299
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
300 (define_code_attr vfml_op [(plus "a") (minus "s")])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
301
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
302 (define_code_attr ss_op [(ss_plus "qadd") (ss_minus "qsub")])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
303
111
kono
parents: 68
diff changeset
304 ;;----------------------------------------------------------------------------
kono
parents: 68
diff changeset
305 ;; Int iterators
kono
parents: 68
diff changeset
306 ;;----------------------------------------------------------------------------
kono
parents: 68
diff changeset
307
kono
parents: 68
diff changeset
308 (define_int_iterator VRINT [UNSPEC_VRINTZ UNSPEC_VRINTP UNSPEC_VRINTM
kono
parents: 68
diff changeset
309 UNSPEC_VRINTR UNSPEC_VRINTX UNSPEC_VRINTA])
kono
parents: 68
diff changeset
310
kono
parents: 68
diff changeset
311 (define_int_iterator NEON_VCMP [UNSPEC_VCEQ UNSPEC_VCGT UNSPEC_VCGE
kono
parents: 68
diff changeset
312 UNSPEC_VCLT UNSPEC_VCLE])
kono
parents: 68
diff changeset
313
kono
parents: 68
diff changeset
314 (define_int_iterator NEON_VACMP [UNSPEC_VCAGE UNSPEC_VCAGT])
kono
parents: 68
diff changeset
315
kono
parents: 68
diff changeset
316 (define_int_iterator NEON_VAGLTE [UNSPEC_VCAGE UNSPEC_VCAGT
kono
parents: 68
diff changeset
317 UNSPEC_VCALE UNSPEC_VCALT])
kono
parents: 68
diff changeset
318
kono
parents: 68
diff changeset
319 (define_int_iterator VCVT [UNSPEC_VRINTP UNSPEC_VRINTM UNSPEC_VRINTA])
kono
parents: 68
diff changeset
320
kono
parents: 68
diff changeset
321 (define_int_iterator NEON_VRINT [UNSPEC_NVRINTP UNSPEC_NVRINTZ UNSPEC_NVRINTM
kono
parents: 68
diff changeset
322 UNSPEC_NVRINTX UNSPEC_NVRINTA UNSPEC_NVRINTN])
kono
parents: 68
diff changeset
323
kono
parents: 68
diff changeset
324 (define_int_iterator NEON_VCVT [UNSPEC_NVRINTP UNSPEC_NVRINTM UNSPEC_NVRINTA])
kono
parents: 68
diff changeset
325
kono
parents: 68
diff changeset
326 (define_int_iterator VADDL [UNSPEC_VADDL_S UNSPEC_VADDL_U])
kono
parents: 68
diff changeset
327
kono
parents: 68
diff changeset
328 (define_int_iterator VADDW [UNSPEC_VADDW_S UNSPEC_VADDW_U])
kono
parents: 68
diff changeset
329
kono
parents: 68
diff changeset
330 (define_int_iterator VHADD [UNSPEC_VRHADD_S UNSPEC_VRHADD_U
kono
parents: 68
diff changeset
331 UNSPEC_VHADD_S UNSPEC_VHADD_U])
kono
parents: 68
diff changeset
332
kono
parents: 68
diff changeset
333 (define_int_iterator VQADD [UNSPEC_VQADD_S UNSPEC_VQADD_U])
kono
parents: 68
diff changeset
334
kono
parents: 68
diff changeset
335 (define_int_iterator VADDHN [UNSPEC_VADDHN UNSPEC_VRADDHN])
kono
parents: 68
diff changeset
336
kono
parents: 68
diff changeset
337 (define_int_iterator VMLAL [UNSPEC_VMLAL_S UNSPEC_VMLAL_U])
kono
parents: 68
diff changeset
338
kono
parents: 68
diff changeset
339 (define_int_iterator VMLAL_LANE [UNSPEC_VMLAL_S_LANE UNSPEC_VMLAL_U_LANE])
kono
parents: 68
diff changeset
340
kono
parents: 68
diff changeset
341 (define_int_iterator VMLSL [UNSPEC_VMLSL_S UNSPEC_VMLSL_U])
kono
parents: 68
diff changeset
342
kono
parents: 68
diff changeset
343 (define_int_iterator VMLSL_LANE [UNSPEC_VMLSL_S_LANE UNSPEC_VMLSL_U_LANE])
kono
parents: 68
diff changeset
344
kono
parents: 68
diff changeset
345 (define_int_iterator VQDMULH [UNSPEC_VQDMULH UNSPEC_VQRDMULH])
kono
parents: 68
diff changeset
346
kono
parents: 68
diff changeset
347 (define_int_iterator VQDMULH_LANE [UNSPEC_VQDMULH_LANE UNSPEC_VQRDMULH_LANE])
kono
parents: 68
diff changeset
348
kono
parents: 68
diff changeset
349 (define_int_iterator VMULL [UNSPEC_VMULL_S UNSPEC_VMULL_U UNSPEC_VMULL_P])
kono
parents: 68
diff changeset
350
kono
parents: 68
diff changeset
351 (define_int_iterator VMULL_LANE [UNSPEC_VMULL_S_LANE UNSPEC_VMULL_U_LANE])
kono
parents: 68
diff changeset
352
kono
parents: 68
diff changeset
353 (define_int_iterator VSUBL [UNSPEC_VSUBL_S UNSPEC_VSUBL_U])
kono
parents: 68
diff changeset
354
kono
parents: 68
diff changeset
355 (define_int_iterator VSUBW [UNSPEC_VSUBW_S UNSPEC_VSUBW_U])
kono
parents: 68
diff changeset
356
kono
parents: 68
diff changeset
357 (define_int_iterator VHSUB [UNSPEC_VHSUB_S UNSPEC_VHSUB_U])
kono
parents: 68
diff changeset
358
kono
parents: 68
diff changeset
359 (define_int_iterator VQSUB [UNSPEC_VQSUB_S UNSPEC_VQSUB_U])
kono
parents: 68
diff changeset
360
kono
parents: 68
diff changeset
361 (define_int_iterator VSUBHN [UNSPEC_VSUBHN UNSPEC_VRSUBHN])
kono
parents: 68
diff changeset
362
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
363 (define_int_iterator VABAL [UNSPEC_VABAL_S UNSPEC_VABAL_U])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
364
111
kono
parents: 68
diff changeset
365 (define_int_iterator VABD [UNSPEC_VABD_S UNSPEC_VABD_U])
kono
parents: 68
diff changeset
366
kono
parents: 68
diff changeset
367 (define_int_iterator VABDL [UNSPEC_VABDL_S UNSPEC_VABDL_U])
kono
parents: 68
diff changeset
368
kono
parents: 68
diff changeset
369 (define_int_iterator VMAXMIN [UNSPEC_VMAX UNSPEC_VMAX_U
kono
parents: 68
diff changeset
370 UNSPEC_VMIN UNSPEC_VMIN_U])
kono
parents: 68
diff changeset
371
kono
parents: 68
diff changeset
372 (define_int_iterator VMAXMINF [UNSPEC_VMAX UNSPEC_VMIN])
kono
parents: 68
diff changeset
373
kono
parents: 68
diff changeset
374 (define_int_iterator VMAXMINFNM [UNSPEC_VMAXNM UNSPEC_VMINNM])
kono
parents: 68
diff changeset
375
kono
parents: 68
diff changeset
376 (define_int_iterator VPADDL [UNSPEC_VPADDL_S UNSPEC_VPADDL_U])
kono
parents: 68
diff changeset
377
kono
parents: 68
diff changeset
378 (define_int_iterator VPADAL [UNSPEC_VPADAL_S UNSPEC_VPADAL_U])
kono
parents: 68
diff changeset
379
kono
parents: 68
diff changeset
380 (define_int_iterator VPMAXMIN [UNSPEC_VPMAX UNSPEC_VPMAX_U
kono
parents: 68
diff changeset
381 UNSPEC_VPMIN UNSPEC_VPMIN_U])
kono
parents: 68
diff changeset
382
kono
parents: 68
diff changeset
383 (define_int_iterator VPMAXMINF [UNSPEC_VPMAX UNSPEC_VPMIN])
kono
parents: 68
diff changeset
384
kono
parents: 68
diff changeset
385 (define_int_iterator VCVT_US [UNSPEC_VCVT_S UNSPEC_VCVT_U])
kono
parents: 68
diff changeset
386
kono
parents: 68
diff changeset
387 (define_int_iterator VCVT_US_N [UNSPEC_VCVT_S_N UNSPEC_VCVT_U_N])
kono
parents: 68
diff changeset
388
kono
parents: 68
diff changeset
389 (define_int_iterator VCVT_HF_US_N [UNSPEC_VCVT_HF_S_N UNSPEC_VCVT_HF_U_N])
kono
parents: 68
diff changeset
390
kono
parents: 68
diff changeset
391 (define_int_iterator VCVT_SI_US_N [UNSPEC_VCVT_SI_S_N UNSPEC_VCVT_SI_U_N])
kono
parents: 68
diff changeset
392
kono
parents: 68
diff changeset
393 (define_int_iterator VCVT_HF_US [UNSPEC_VCVTA_S UNSPEC_VCVTA_U
kono
parents: 68
diff changeset
394 UNSPEC_VCVTM_S UNSPEC_VCVTM_U
kono
parents: 68
diff changeset
395 UNSPEC_VCVTN_S UNSPEC_VCVTN_U
kono
parents: 68
diff changeset
396 UNSPEC_VCVTP_S UNSPEC_VCVTP_U])
kono
parents: 68
diff changeset
397
kono
parents: 68
diff changeset
398 (define_int_iterator VCVTH_US [UNSPEC_VCVTH_S UNSPEC_VCVTH_U])
kono
parents: 68
diff changeset
399
kono
parents: 68
diff changeset
400 ;; Operators for FP16 instructions.
kono
parents: 68
diff changeset
401 (define_int_iterator FP16_RND [UNSPEC_VRND UNSPEC_VRNDA
kono
parents: 68
diff changeset
402 UNSPEC_VRNDM UNSPEC_VRNDN
kono
parents: 68
diff changeset
403 UNSPEC_VRNDP UNSPEC_VRNDX])
kono
parents: 68
diff changeset
404
kono
parents: 68
diff changeset
405 (define_int_iterator VQMOVN [UNSPEC_VQMOVN_S UNSPEC_VQMOVN_U])
kono
parents: 68
diff changeset
406
kono
parents: 68
diff changeset
407 (define_int_iterator VMOVL [UNSPEC_VMOVL_S UNSPEC_VMOVL_U])
kono
parents: 68
diff changeset
408
kono
parents: 68
diff changeset
409 (define_int_iterator VSHL [UNSPEC_VSHL_S UNSPEC_VSHL_U
kono
parents: 68
diff changeset
410 UNSPEC_VRSHL_S UNSPEC_VRSHL_U])
kono
parents: 68
diff changeset
411
kono
parents: 68
diff changeset
412 (define_int_iterator VQSHL [UNSPEC_VQSHL_S UNSPEC_VQSHL_U
kono
parents: 68
diff changeset
413 UNSPEC_VQRSHL_S UNSPEC_VQRSHL_U])
kono
parents: 68
diff changeset
414
kono
parents: 68
diff changeset
415 (define_int_iterator VSHR_N [UNSPEC_VSHR_S_N UNSPEC_VSHR_U_N
kono
parents: 68
diff changeset
416 UNSPEC_VRSHR_S_N UNSPEC_VRSHR_U_N])
kono
parents: 68
diff changeset
417
kono
parents: 68
diff changeset
418 (define_int_iterator VSHRN_N [UNSPEC_VSHRN_N UNSPEC_VRSHRN_N])
kono
parents: 68
diff changeset
419
kono
parents: 68
diff changeset
420 (define_int_iterator VQSHRN_N [UNSPEC_VQSHRN_S_N UNSPEC_VQSHRN_U_N
kono
parents: 68
diff changeset
421 UNSPEC_VQRSHRN_S_N UNSPEC_VQRSHRN_U_N])
kono
parents: 68
diff changeset
422
kono
parents: 68
diff changeset
423 (define_int_iterator VQSHRUN_N [UNSPEC_VQSHRUN_N UNSPEC_VQRSHRUN_N])
kono
parents: 68
diff changeset
424
kono
parents: 68
diff changeset
425 (define_int_iterator VQSHL_N [UNSPEC_VQSHL_S_N UNSPEC_VQSHL_U_N])
kono
parents: 68
diff changeset
426
kono
parents: 68
diff changeset
427 (define_int_iterator VSHLL_N [UNSPEC_VSHLL_S_N UNSPEC_VSHLL_U_N])
kono
parents: 68
diff changeset
428
kono
parents: 68
diff changeset
429 (define_int_iterator VSRA_N [UNSPEC_VSRA_S_N UNSPEC_VSRA_U_N
kono
parents: 68
diff changeset
430 UNSPEC_VRSRA_S_N UNSPEC_VRSRA_U_N])
kono
parents: 68
diff changeset
431
kono
parents: 68
diff changeset
432 (define_int_iterator CRC [UNSPEC_CRC32B UNSPEC_CRC32H UNSPEC_CRC32W
kono
parents: 68
diff changeset
433 UNSPEC_CRC32CB UNSPEC_CRC32CH UNSPEC_CRC32CW])
kono
parents: 68
diff changeset
434
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
435 (define_int_iterator CRYPTO_AESMC [UNSPEC_AESMC UNSPEC_AESIMC])
111
kono
parents: 68
diff changeset
436
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
437 (define_int_iterator CRYPTO_AES [UNSPEC_AESD UNSPEC_AESE])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
438
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
439 (define_int_iterator CRYPTO_BINARY [UNSPEC_SHA1SU1 UNSPEC_SHA256SU0])
111
kono
parents: 68
diff changeset
440
kono
parents: 68
diff changeset
441 (define_int_iterator CRYPTO_TERNARY [UNSPEC_SHA1SU0 UNSPEC_SHA256H
kono
parents: 68
diff changeset
442 UNSPEC_SHA256H2 UNSPEC_SHA256SU1])
kono
parents: 68
diff changeset
443
kono
parents: 68
diff changeset
444 (define_int_iterator CRYPTO_SELECTING [UNSPEC_SHA1C UNSPEC_SHA1M
kono
parents: 68
diff changeset
445 UNSPEC_SHA1P])
kono
parents: 68
diff changeset
446
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
447 (define_int_iterator USXTB16 [UNSPEC_SXTB16 UNSPEC_UXTB16])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
448 (define_int_iterator SIMD32_NOGE_BINOP
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
449 [UNSPEC_QADD8 UNSPEC_QSUB8 UNSPEC_SHADD8
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
450 UNSPEC_SHSUB8 UNSPEC_UHADD8 UNSPEC_UHSUB8
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
451 UNSPEC_UQADD8 UNSPEC_UQSUB8
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
452 UNSPEC_QADD16 UNSPEC_QASX UNSPEC_QSAX
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
453 UNSPEC_QSUB16 UNSPEC_SHADD16 UNSPEC_SHASX
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
454 UNSPEC_SHSAX UNSPEC_SHSUB16 UNSPEC_UHADD16
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
455 UNSPEC_UHASX UNSPEC_UHSAX UNSPEC_UHSUB16
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
456 UNSPEC_UQADD16 UNSPEC_UQASX UNSPEC_UQSAX
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
457 UNSPEC_UQSUB16 UNSPEC_SMUSD UNSPEC_SMUSDX
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
458 UNSPEC_SXTAB16 UNSPEC_UXTAB16 UNSPEC_USAD8])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
459
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
460 (define_int_iterator SIMD32_DIMODE [UNSPEC_SMLALD UNSPEC_SMLALDX
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
461 UNSPEC_SMLSLD UNSPEC_SMLSLDX])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
462
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
463 (define_int_iterator SMLAWBT [UNSPEC_SMLAWB UNSPEC_SMLAWT])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
464
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
465 (define_int_iterator SIMD32_GE [UNSPEC_SADD8 UNSPEC_SSUB8 UNSPEC_UADD8
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
466 UNSPEC_USUB8 UNSPEC_SADD16 UNSPEC_SASX
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
467 UNSPEC_SSAX UNSPEC_SSUB16 UNSPEC_UADD16
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
468 UNSPEC_UASX UNSPEC_USAX UNSPEC_USUB16])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
469
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
470 (define_int_iterator SIMD32_TERNOP_Q [UNSPEC_SMLAD UNSPEC_SMLADX UNSPEC_SMLSD
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
471 UNSPEC_SMLSDX])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
472
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
473 (define_int_iterator SIMD32_BINOP_Q [UNSPEC_SMUAD UNSPEC_SMUADX])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
474
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
475 (define_int_iterator USSAT16 [UNSPEC_SSAT16 UNSPEC_USAT16])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
476
111
kono
parents: 68
diff changeset
477 (define_int_iterator VQRDMLH_AS [UNSPEC_VQRDMLAH UNSPEC_VQRDMLSH])
kono
parents: 68
diff changeset
478
kono
parents: 68
diff changeset
479 (define_int_iterator VFM_LANE_AS [UNSPEC_VFMA_LANE UNSPEC_VFMS_LANE])
kono
parents: 68
diff changeset
480
kono
parents: 68
diff changeset
481 (define_int_iterator DOTPROD [UNSPEC_DOT_S UNSPEC_DOT_U])
kono
parents: 68
diff changeset
482
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
483 (define_int_iterator DOTPROD_I8MM [UNSPEC_DOT_US UNSPEC_DOT_SU])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
484
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
485 (define_int_iterator VFMLHALVES [UNSPEC_VFML_LO UNSPEC_VFML_HI])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
486
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
487 (define_int_iterator VCADD [UNSPEC_VCADD90 UNSPEC_VCADD270])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
488 (define_int_iterator VCMLA [UNSPEC_VCMLA UNSPEC_VCMLA90 UNSPEC_VCMLA180 UNSPEC_VCMLA270])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
489
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
490 ;;----------------------------------------------------------------------------
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
491 ;; Mode attributes
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
492 ;;----------------------------------------------------------------------------
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
493
111
kono
parents: 68
diff changeset
494 ;; Determine name of atomic compare and swap from success result mode. This
kono
parents: 68
diff changeset
495 ;; distinguishes between 16-bit Thumb and 32-bit Thumb/ARM.
kono
parents: 68
diff changeset
496 (define_mode_attr arch [(CC_Z "32") (SI "t1")])
kono
parents: 68
diff changeset
497
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
498 ;; Determine element size suffix from vector mode.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
499 (define_mode_attr MMX_char [(V8QI "b") (V4HI "h") (V2SI "w") (DI "d")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
500
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
501 ;; vtbl<n> suffix for NEON vector modes.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
502 (define_mode_attr VTAB_n [(TI "2") (EI "3") (OI "4")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
503
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
504 ;; fp16 or bf16 marker for 16-bit float modes.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
505 (define_mode_attr fporbf [(HF "fp16") (BF "bf16")])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
506
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
507 ;; (Opposite) mode to convert to/from for NEON mode conversions.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
508 (define_mode_attr V_CVTTO [(V2SI "V2SF") (V2SF "V2SI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
509 (V4SI "V4SF") (V4SF "V4SI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
510
111
kono
parents: 68
diff changeset
511 ;; As above but in lower case.
kono
parents: 68
diff changeset
512 (define_mode_attr V_cvtto [(V2SI "v2sf") (V2SF "v2si")
kono
parents: 68
diff changeset
513 (V4SI "v4sf") (V4SF "v4si")])
kono
parents: 68
diff changeset
514
kono
parents: 68
diff changeset
515 ;; (Opposite) mode to convert to/from for vector-half mode conversions.
kono
parents: 68
diff changeset
516 (define_mode_attr VH_CVTTO [(V4HI "V4HF") (V4HF "V4HI")
kono
parents: 68
diff changeset
517 (V8HI "V8HF") (V8HF "V8HI")])
kono
parents: 68
diff changeset
518
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
519 ;; Define element mode for each vector mode.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
520 (define_mode_attr V_elem [(V8QI "QI") (V16QI "QI")
111
kono
parents: 68
diff changeset
521 (V4HI "HI") (V8HI "HI")
kono
parents: 68
diff changeset
522 (V4HF "HF") (V8HF "HF")
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
523 (V2SI "SI") (V4SI "SI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
524 (V2SF "SF") (V4SF "SF")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
525 (DI "DI") (V2DI "DI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
526
111
kono
parents: 68
diff changeset
527 ;; As above but in lower case.
kono
parents: 68
diff changeset
528 (define_mode_attr V_elem_l [(V8QI "qi") (V16QI "qi")
kono
parents: 68
diff changeset
529 (V4HI "hi") (V8HI "hi")
kono
parents: 68
diff changeset
530 (V4HF "hf") (V8HF "hf")
kono
parents: 68
diff changeset
531 (V2SI "si") (V4SI "si")
kono
parents: 68
diff changeset
532 (V2SF "sf") (V4SF "sf")
kono
parents: 68
diff changeset
533 (DI "di") (V2DI "di")])
kono
parents: 68
diff changeset
534
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
535 ;; Element modes for vector extraction, padded up to register size.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
536
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
537 (define_mode_attr V_ext [(V8QI "SI") (V16QI "SI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
538 (V4HI "SI") (V8HI "SI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
539 (V2SI "SI") (V4SI "SI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
540 (V2SF "SF") (V4SF "SF")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
541 (DI "DI") (V2DI "DI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
542
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
543 ;; Mode of pair of elements for each vector mode, to define transfer
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
544 ;; size for structure lane/dup loads and stores.
111
kono
parents: 68
diff changeset
545 (define_mode_attr V_two_elem [(V8QI "HI") (V16QI "HI")
kono
parents: 68
diff changeset
546 (V4HI "SI") (V8HI "SI")
kono
parents: 68
diff changeset
547 (V4HF "SF") (V8HF "SF")
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
548 (V2SI "V2SI") (V4SI "V2SI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
549 (V2SF "V2SF") (V4SF "V2SF")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
550 (DI "V2DI") (V2DI "V2DI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
551
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
552 ;; Mode mapping for VFM[A,S]L instructions.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
553 (define_mode_attr VFML [(V2SF "V4HF") (V4SF "V8HF")])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
554
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
555 ;; Mode mapping for VFM[A,S]L instructions for the vec_select result.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
556 (define_mode_attr VFMLSEL [(V2SF "V2HF") (V4SF "V4HF")])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
557
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
558 ;; Mode mapping for VFM[A,S]L instructions for some awkward lane-wise forms.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
559 (define_mode_attr VFMLSEL2 [(V2SF "V8HF") (V4SF "V4HF")])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
560
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
561 ;; Same as the above, but lowercase.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
562 (define_mode_attr vfmlsel2 [(V2SF "v8hf") (V4SF "v4hf")])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
563
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
564 ;; Similar, for three elements.
111
kono
parents: 68
diff changeset
565 (define_mode_attr V_three_elem [(V8QI "BLK") (V16QI "BLK")
kono
parents: 68
diff changeset
566 (V4HI "BLK") (V8HI "BLK")
kono
parents: 68
diff changeset
567 (V4HF "BLK") (V8HF "BLK")
kono
parents: 68
diff changeset
568 (V2SI "BLK") (V4SI "BLK")
kono
parents: 68
diff changeset
569 (V2SF "BLK") (V4SF "BLK")
kono
parents: 68
diff changeset
570 (DI "EI") (V2DI "EI")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
571
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
572 ;; Similar, for four elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
573 (define_mode_attr V_four_elem [(V8QI "SI") (V16QI "SI")
111
kono
parents: 68
diff changeset
574 (V4HI "V4HI") (V8HI "V4HI")
kono
parents: 68
diff changeset
575 (V4HF "V4HF") (V8HF "V4HF")
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
576 (V2SI "V4SI") (V4SI "V4SI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
577 (V2SF "V4SF") (V4SF "V4SF")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
578 (DI "OI") (V2DI "OI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
579
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
580 ;; Register width from element mode
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
581 (define_mode_attr V_reg [(V8QI "P") (V16QI "q")
111
kono
parents: 68
diff changeset
582 (V4HI "P") (V8HI "q")
kono
parents: 68
diff changeset
583 (V4HF "P") (V8HF "q")
kono
parents: 68
diff changeset
584 (V2SI "P") (V4SI "q")
kono
parents: 68
diff changeset
585 (V2SF "P") (V4SF "q")
kono
parents: 68
diff changeset
586 (DI "P") (V2DI "q")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
587 (V2HF "") (SF "")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
588 (DF "P") (HF "")])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
589
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
590 ;; Output template to select the high VFP register of a mult-register value.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
591 (define_mode_attr V_hi [(V2SF "p") (V4SF "f")])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
592
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
593 ;; Output template to select the low VFP register of a mult-register value.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
594 (define_mode_attr V_lo [(V2SF "") (V4SF "e")])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
595
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
596 ;; Helper attribute for printing output templates for awkward forms of
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
597 ;; vfmlal/vfmlsl intrinsics.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
598 (define_mode_attr V_lane_reg [(V2SF "") (V4SF "P")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
599
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
600 ;; Wider modes with the same number of elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
601 (define_mode_attr V_widen [(V8QI "V8HI") (V4HI "V4SI") (V2SI "V2DI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
602
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
603 ;; Narrower modes with the same number of elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
604 (define_mode_attr V_narrow [(V8HI "V8QI") (V4SI "V4HI") (V2DI "V2SI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
605
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
606 ;; Narrower modes with double the number of elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
607 (define_mode_attr V_narrow_pack [(V4SI "V8HI") (V8HI "V16QI") (V2DI "V4SI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
608 (V4HI "V8QI") (V2SI "V4HI") (DI "V2SI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
609
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
610 ;; Modes with half the number of equal-sized elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
611 (define_mode_attr V_HALF [(V16QI "V8QI") (V8HI "V4HI")
111
kono
parents: 68
diff changeset
612 (V8HF "V4HF") (V4SI "V2SI")
kono
parents: 68
diff changeset
613 (V4SF "V2SF") (V2DF "DF")
kono
parents: 68
diff changeset
614 (V2DI "DI") (V4HF "HF")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
615
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
616 ;; Same, but lower-case.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
617 (define_mode_attr V_half [(V16QI "v8qi") (V8HI "v4hi")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
618 (V4SI "v2si") (V4SF "v2sf")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
619 (V2DI "di")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
620
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
621 ;; Modes with twice the number of equal-sized elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
622 (define_mode_attr V_DOUBLE [(V8QI "V16QI") (V4HI "V8HI")
111
kono
parents: 68
diff changeset
623 (V2SI "V4SI") (V4HF "V8HF")
kono
parents: 68
diff changeset
624 (V2SF "V4SF") (DF "V2DF")
kono
parents: 68
diff changeset
625 (DI "V2DI")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
626
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
627 ;; Same, but lower-case.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
628 (define_mode_attr V_double [(V8QI "v16qi") (V4HI "v8hi")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
629 (V2SI "v4si") (V2SF "v4sf")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
630 (DI "v2di")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
631
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
632 ;; Modes with double-width elements.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
633 (define_mode_attr V_double_width [(V8QI "V4HI") (V16QI "V8HI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
634 (V4HI "V2SI") (V8HI "V4SI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
635 (V2SI "DI") (V4SI "V2DI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
636
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
637 ;; Double-sized modes with the same element size.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
638 ;; Used for neon_vdup_lane, where the second operand is double-sized
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
639 ;; even when the first one is quad.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
640 (define_mode_attr V_double_vector_mode [(V16QI "V8QI") (V8HI "V4HI")
111
kono
parents: 68
diff changeset
641 (V4SI "V2SI") (V4SF "V2SF")
kono
parents: 68
diff changeset
642 (V8QI "V8QI") (V4HI "V4HI")
kono
parents: 68
diff changeset
643 (V2SI "V2SI") (V2SF "V2SF")
kono
parents: 68
diff changeset
644 (V8HF "V4HF") (V4HF "V4HF")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
645
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
646 ;; Mode of result of comparison operations (and bit-select operand 1).
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
647 (define_mode_attr V_cmp_result [(V8QI "V8QI") (V16QI "V16QI")
111
kono
parents: 68
diff changeset
648 (V4HI "V4HI") (V8HI "V8HI")
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
649 (V2SI "V2SI") (V4SI "V4SI")
111
kono
parents: 68
diff changeset
650 (V4HF "V4HI") (V8HF "V8HI")
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
651 (V2SF "V2SI") (V4SF "V4SI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
652 (DI "DI") (V2DI "V2DI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
653
111
kono
parents: 68
diff changeset
654 (define_mode_attr v_cmp_result [(V8QI "v8qi") (V16QI "v16qi")
kono
parents: 68
diff changeset
655 (V4HI "v4hi") (V8HI "v8hi")
kono
parents: 68
diff changeset
656 (V2SI "v2si") (V4SI "v4si")
kono
parents: 68
diff changeset
657 (DI "di") (V2DI "v2di")
kono
parents: 68
diff changeset
658 (V2SF "v2si") (V4SF "v4si")])
kono
parents: 68
diff changeset
659
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
660 ;; Get element type from double-width mode, for operations where we
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
661 ;; don't care about signedness.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
662 (define_mode_attr V_if_elem [(V8QI "i8") (V16QI "i8")
111
kono
parents: 68
diff changeset
663 (V4HI "i16") (V8HI "i16")
kono
parents: 68
diff changeset
664 (V2SI "i32") (V4SI "i32")
kono
parents: 68
diff changeset
665 (DI "i64") (V2DI "i64")
kono
parents: 68
diff changeset
666 (V2SF "f32") (V4SF "f32")
kono
parents: 68
diff changeset
667 (SF "f32") (DF "f64")
kono
parents: 68
diff changeset
668 (HF "f16") (V4HF "f16")
kono
parents: 68
diff changeset
669 (V8HF "f16")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
670
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
671 ;; Same, but for operations which work on signed values.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
672 (define_mode_attr V_s_elem [(V8QI "s8") (V16QI "s8")
111
kono
parents: 68
diff changeset
673 (V4HI "s16") (V8HI "s16")
kono
parents: 68
diff changeset
674 (V2SI "s32") (V4SI "s32")
kono
parents: 68
diff changeset
675 (DI "s64") (V2DI "s64")
kono
parents: 68
diff changeset
676 (V2SF "f32") (V4SF "f32")
kono
parents: 68
diff changeset
677 (HF "f16") (V4HF "f16")
kono
parents: 68
diff changeset
678 (V8HF "f16")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
679
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
680 ;; Same, but for operations which work on unsigned values.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
681 (define_mode_attr V_u_elem [(V8QI "u8") (V16QI "u8")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
682 (V4HI "u16") (V8HI "u16")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
683 (V2SI "u32") (V4SI "u32")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
684 (DI "u64") (V2DI "u64")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
685 (V2SF "f32") (V4SF "f32")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
686
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
687 ;; Element types for extraction of unsigned scalars.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
688 (define_mode_attr V_uf_sclr [(V8QI "u8") (V16QI "u8")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
689 (V4HI "u16") (V8HI "u16")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
690 (V2SI "32") (V4SI "32")
111
kono
parents: 68
diff changeset
691 (V4HF "u16") (V8HF "u16")
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
692 (V2SF "32") (V4SF "32")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
693
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
694 (define_mode_attr V_sz_elem [(V8QI "8") (V16QI "8")
111
kono
parents: 68
diff changeset
695 (V4HI "16") (V8HI "16")
kono
parents: 68
diff changeset
696 (V2SI "32") (V4SI "32")
kono
parents: 68
diff changeset
697 (DI "64") (V2DI "64")
kono
parents: 68
diff changeset
698 (V4HF "16") (V8HF "16")
kono
parents: 68
diff changeset
699 (V2SF "32") (V4SF "32")])
kono
parents: 68
diff changeset
700
kono
parents: 68
diff changeset
701 (define_mode_attr V_elem_ch [(V8QI "b") (V16QI "b")
kono
parents: 68
diff changeset
702 (V4HI "h") (V8HI "h")
kono
parents: 68
diff changeset
703 (V2SI "s") (V4SI "s")
kono
parents: 68
diff changeset
704 (DI "d") (V2DI "d")
kono
parents: 68
diff changeset
705 (V2SF "s") (V4SF "s")
kono
parents: 68
diff changeset
706 (V2SF "s") (V4SF "s")])
kono
parents: 68
diff changeset
707
kono
parents: 68
diff changeset
708 (define_mode_attr VH_elem_ch [(V4HI "s") (V8HI "s")
kono
parents: 68
diff changeset
709 (V4HF "s") (V8HF "s")
kono
parents: 68
diff changeset
710 (HF "s")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
711
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
712 ;; Element sizes for duplicating ARM registers to all elements of a vector.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
713 (define_mode_attr VD_dup [(V8QI "8") (V4HI "16") (V2SI "32") (V2SF "32")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
714
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
715 ;; Opaque integer types for results of pair-forming intrinsics (vtrn, etc.)
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
716 (define_mode_attr V_PAIR [(V8QI "TI") (V16QI "OI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
717 (V4HI "TI") (V8HI "OI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
718 (V2SI "TI") (V4SI "OI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
719 (V2SF "TI") (V4SF "OI")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
720 (DI "TI") (V2DI "OI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
721
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
722 ;; Same, but lower-case.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
723 (define_mode_attr V_pair [(V8QI "ti") (V16QI "oi")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
724 (V4HI "ti") (V8HI "oi")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
725 (V2SI "ti") (V4SI "oi")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
726 (V2SF "ti") (V4SF "oi")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
727 (DI "ti") (V2DI "oi")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
728
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
729 ;; Extra suffix on some 64-bit insn names (to avoid collision with standard
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
730 ;; names which we don't want to define).
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
731 (define_mode_attr V_suf64 [(V8QI "") (V16QI "")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
732 (V4HI "") (V8HI "")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
733 (V2SI "") (V4SI "")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
734 (V2SF "") (V4SF "")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
735 (DI "_neon") (V2DI "")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
736
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
737
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
738 ;; Scalars to be presented to scalar multiplication instructions
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
739 ;; must satisfy the following constraints.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
740 ;; 1. If the mode specifies 16-bit elements, the scalar must be in D0-D7.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
741 ;; 2. If the mode specifies 32-bit elements, the scalar must be in D0-D15.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
742
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
743 ;; This mode attribute is used to obtain the correct register constraints.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
744
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
745 (define_mode_attr scalar_mul_constraint [(V4HI "x") (V2SI "t") (V2SF "t")
111
kono
parents: 68
diff changeset
746 (V8HI "x") (V4SI "t") (V4SF "t")
kono
parents: 68
diff changeset
747 (V8HF "x") (V4HF "x")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
748
111
kono
parents: 68
diff changeset
749 ;; Predicates used for setting type for neon instructions
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
750
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
751 (define_mode_attr Is_float_mode [(V8QI "false") (V16QI "false")
111
kono
parents: 68
diff changeset
752 (V4HI "false") (V8HI "false")
kono
parents: 68
diff changeset
753 (V2SI "false") (V4SI "false")
kono
parents: 68
diff changeset
754 (V4HF "true") (V8HF "true")
kono
parents: 68
diff changeset
755 (V2SF "true") (V4SF "true")
kono
parents: 68
diff changeset
756 (DI "false") (V2DI "false")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
757
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
758 (define_mode_attr Scalar_mul_8_16 [(V8QI "true") (V16QI "true")
111
kono
parents: 68
diff changeset
759 (V4HI "true") (V8HI "true")
kono
parents: 68
diff changeset
760 (V2SI "false") (V4SI "false")
kono
parents: 68
diff changeset
761 (V2SF "false") (V4SF "false")
kono
parents: 68
diff changeset
762 (DI "false") (V2DI "false")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
763
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
764 (define_mode_attr Is_d_reg [(V8QI "true") (V16QI "false")
111
kono
parents: 68
diff changeset
765 (V4HI "true") (V8HI "false")
kono
parents: 68
diff changeset
766 (V2SI "true") (V4SI "false")
kono
parents: 68
diff changeset
767 (V2SF "true") (V4SF "false")
kono
parents: 68
diff changeset
768 (DI "true") (V2DI "false")
kono
parents: 68
diff changeset
769 (V4HF "true") (V8HF "false")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
770
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
771 (define_mode_attr V_mode_nunits [(V8QI "8") (V16QI "16")
111
kono
parents: 68
diff changeset
772 (V4HF "4") (V8HF "8")
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
773 (V4HI "4") (V8HI "8")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
774 (V2SI "2") (V4SI "4")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
775 (V2SF "2") (V4SF "4")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
776 (DI "1") (V2DI "2")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
777 (DF "1") (V2DF "2")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
778
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
779 ;; Same as V_widen, but lower-case.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
780 (define_mode_attr V_widen_l [(V8QI "v8hi") (V4HI "v4si") ( V2SI "v2di")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
781
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
782 ;; Widen. Result is half the number of elements, but widened to double-width.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
783 (define_mode_attr V_unpack [(V16QI "V8HI") (V8HI "V4SI") (V4SI "V2DI")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
784
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
785 ;; Conditions to be used in extend<mode>di patterns.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
786 (define_mode_attr qhs_zextenddi_cond [(SI "") (HI "&& arm_arch6") (QI "")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
787 (define_mode_attr qhs_sextenddi_cond [(SI "") (HI "&& arm_arch6")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
788 (QI "&& arm_arch6")])
111
kono
parents: 68
diff changeset
789 (define_mode_attr qhs_zextenddi_op [(SI "s_register_operand")
kono
parents: 68
diff changeset
790 (HI "nonimmediate_operand")
kono
parents: 68
diff changeset
791 (QI "nonimmediate_operand")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
792 (define_mode_attr qhs_extenddi_op [(SI "s_register_operand")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
793 (HI "nonimmediate_operand")
111
kono
parents: 68
diff changeset
794 (QI "arm_reg_or_extendqisi_mem_op")])
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
795 (define_mode_attr qhs_extenddi_cstr [(SI "0,r,r") (HI "0,rm,rm") (QI "0,rUq,rm")])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
796 (define_mode_attr qhs_zextenddi_cstr [(SI "0,r") (HI "0,rm") (QI "0,rm")])
111
kono
parents: 68
diff changeset
797
kono
parents: 68
diff changeset
798 ;; Mode attributes used for fixed-point support.
kono
parents: 68
diff changeset
799 (define_mode_attr qaddsub_suf [(V4UQQ "8") (V2UHQ "16") (UQQ "8") (UHQ "16")
kono
parents: 68
diff changeset
800 (V2UHA "16") (UHA "16")
kono
parents: 68
diff changeset
801 (V4QQ "8") (V2HQ "16") (QQ "8") (HQ "16")
kono
parents: 68
diff changeset
802 (V2HA "16") (HA "16") (SQ "") (SA "")])
kono
parents: 68
diff changeset
803
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
804 (define_mode_attr qaddsub_clob_q [(V4UQQ "0") (V2UHQ "0") (UQQ "0") (UHQ "0")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
805 (V2UHA "0") (UHA "0")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
806 (V4QQ "0") (V2HQ "0") (QQ "0") (HQ "0")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
807 (V2HA "0") (HA "0") (SQ "ARM_Q_BIT_READ")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
808 (SA "ARM_Q_BIT_READ")])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
809
111
kono
parents: 68
diff changeset
810 ;; Mode attribute for vshll.
kono
parents: 68
diff changeset
811 (define_mode_attr V_innermode [(V8QI "QI") (V4HI "HI") (V2SI "SI")])
kono
parents: 68
diff changeset
812
kono
parents: 68
diff changeset
813 ;; Mode attributes used for VFP support.
kono
parents: 68
diff changeset
814 (define_mode_attr F_constraint [(SF "t") (DF "w")])
kono
parents: 68
diff changeset
815 (define_mode_attr vfp_type [(SF "s") (DF "d")])
kono
parents: 68
diff changeset
816 (define_mode_attr vfp_double_cond [(SF "") (DF "&& TARGET_VFP_DOUBLE")])
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
817 (define_mode_attr VF_constraint [(V4HF "t") (V8HF "t") (V2SF "t") (V4SF "w")])
111
kono
parents: 68
diff changeset
818
kono
parents: 68
diff changeset
819 ;; Mode attribute used to build the "type" attribute.
kono
parents: 68
diff changeset
820 (define_mode_attr q [(V8QI "") (V16QI "_q")
kono
parents: 68
diff changeset
821 (V4HI "") (V8HI "_q")
kono
parents: 68
diff changeset
822 (V2SI "") (V4SI "_q")
kono
parents: 68
diff changeset
823 (V4HF "") (V8HF "_q")
kono
parents: 68
diff changeset
824 (V2SF "") (V4SF "_q")
kono
parents: 68
diff changeset
825 (V4HF "") (V8HF "_q")
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
826 (V4BF "") (V8BF "_q")
111
kono
parents: 68
diff changeset
827 (DI "") (V2DI "_q")
kono
parents: 68
diff changeset
828 (DF "") (V2DF "_q")
kono
parents: 68
diff changeset
829 (HF "")])
kono
parents: 68
diff changeset
830
kono
parents: 68
diff changeset
831 (define_mode_attr pf [(V8QI "p") (V16QI "p") (V2SF "f") (V4SF "f")])
kono
parents: 68
diff changeset
832
kono
parents: 68
diff changeset
833 (define_mode_attr VSI2QI [(V2SI "V8QI") (V4SI "V16QI")])
kono
parents: 68
diff changeset
834 (define_mode_attr vsi2qi [(V2SI "v8qi") (V4SI "v16qi")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
835
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
836 ;;----------------------------------------------------------------------------
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
837 ;; Code attributes
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
838 ;;----------------------------------------------------------------------------
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
839
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
840 ;; Determine the mode of a 'wide compare', ie where the carry flag is
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
841 ;; propagated into the comparison.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
842 (define_code_attr CC_EXTEND [(sign_extend "CC_NV") (zero_extend "CC_B")])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
843
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
844 ;; Assembler mnemonics for vqh_ops and vqhs_ops iterators.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
845 (define_code_attr VQH_mnem [(plus "vadd") (smin "vmin") (smax "vmax")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
846 (umin "vmin") (umax "vmax")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
847
111
kono
parents: 68
diff changeset
848 ;; Type attributes for vqh_ops and vqhs_ops iterators.
kono
parents: 68
diff changeset
849 (define_code_attr VQH_type [(plus "add") (smin "minmax") (smax "minmax")
kono
parents: 68
diff changeset
850 (umin "minmax") (umax "minmax")])
kono
parents: 68
diff changeset
851
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
852 ;; Signs of above, where relevant.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
853 (define_code_attr VQH_sign [(plus "i") (smin "s") (smax "s") (umin "u")
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
854 (umax "u")])
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
855
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
856 ;; Map rtl operator codes to optab names
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
857 (define_code_attr optab
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
858 [(and "and")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
859 (ior "ior")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
860 (xor "xor")])
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
861
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
862 ;; Assembler mnemonics for signedness of widening operations.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
863 (define_code_attr US [(sign_extend "s") (zero_extend "u")])
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
864 (define_code_attr Us [(sign_extend "") (zero_extend "u")])
111
kono
parents: 68
diff changeset
865
kono
parents: 68
diff changeset
866 ;; Signedness suffix for float->fixed conversions. Empty for signed
kono
parents: 68
diff changeset
867 ;; conversion.
kono
parents: 68
diff changeset
868 (define_code_attr su_optab [(fix "") (unsigned_fix "u")])
kono
parents: 68
diff changeset
869
kono
parents: 68
diff changeset
870 ;; Sign prefix to use in instruction type suffixes, i.e. s32, u32.
kono
parents: 68
diff changeset
871 (define_code_attr su [(fix "s") (unsigned_fix "u")])
kono
parents: 68
diff changeset
872
kono
parents: 68
diff changeset
873 ;; Right shifts
kono
parents: 68
diff changeset
874 (define_code_attr shift [(ashiftrt "ashr") (lshiftrt "lshr")])
kono
parents: 68
diff changeset
875 (define_code_attr shifttype [(ashiftrt "signed") (lshiftrt "unsigned")])
kono
parents: 68
diff changeset
876
kono
parents: 68
diff changeset
877 ;; String reprentations of operations on the sign of a number.
kono
parents: 68
diff changeset
878 (define_code_attr absneg_str [(abs "abs") (neg "neg")])
kono
parents: 68
diff changeset
879
kono
parents: 68
diff changeset
880 ;; Conversions.
kono
parents: 68
diff changeset
881 (define_code_attr FCVTI32typename [(unsigned_float "u32") (float "s32")])
kono
parents: 68
diff changeset
882
kono
parents: 68
diff changeset
883 (define_code_attr float_sup [(unsigned_float "u") (float "s")])
kono
parents: 68
diff changeset
884
kono
parents: 68
diff changeset
885 (define_code_attr float_SUP [(unsigned_float "U") (float "S")])
kono
parents: 68
diff changeset
886
kono
parents: 68
diff changeset
887 ;;----------------------------------------------------------------------------
kono
parents: 68
diff changeset
888 ;; Int attributes
kono
parents: 68
diff changeset
889 ;;----------------------------------------------------------------------------
kono
parents: 68
diff changeset
890
kono
parents: 68
diff changeset
891 ;; Mapping between vector UNSPEC operations and the signed ('s'),
kono
parents: 68
diff changeset
892 ;; unsigned ('u'), poly ('p') or float ('f') nature of their data type.
kono
parents: 68
diff changeset
893 (define_int_attr sup [
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
894 (UNSPEC_SXTB16 "s") (UNSPEC_UXTB16 "u")
111
kono
parents: 68
diff changeset
895 (UNSPEC_VADDL_S "s") (UNSPEC_VADDL_U "u")
kono
parents: 68
diff changeset
896 (UNSPEC_VADDW_S "s") (UNSPEC_VADDW_U "u")
kono
parents: 68
diff changeset
897 (UNSPEC_VRHADD_S "s") (UNSPEC_VRHADD_U "u")
kono
parents: 68
diff changeset
898 (UNSPEC_VHADD_S "s") (UNSPEC_VHADD_U "u")
kono
parents: 68
diff changeset
899 (UNSPEC_VQADD_S "s") (UNSPEC_VQADD_U "u")
kono
parents: 68
diff changeset
900 (UNSPEC_VMLAL_S "s") (UNSPEC_VMLAL_U "u")
kono
parents: 68
diff changeset
901 (UNSPEC_VMLAL_S_LANE "s") (UNSPEC_VMLAL_U_LANE "u")
kono
parents: 68
diff changeset
902 (UNSPEC_VMLSL_S "s") (UNSPEC_VMLSL_U "u")
kono
parents: 68
diff changeset
903 (UNSPEC_VMLSL_S_LANE "s") (UNSPEC_VMLSL_U_LANE "u")
kono
parents: 68
diff changeset
904 (UNSPEC_VMULL_S "s") (UNSPEC_VMULL_U "u") (UNSPEC_VMULL_P "p")
kono
parents: 68
diff changeset
905 (UNSPEC_VMULL_S_LANE "s") (UNSPEC_VMULL_U_LANE "u")
kono
parents: 68
diff changeset
906 (UNSPEC_VSUBL_S "s") (UNSPEC_VSUBL_U "u")
kono
parents: 68
diff changeset
907 (UNSPEC_VSUBW_S "s") (UNSPEC_VSUBW_U "u")
kono
parents: 68
diff changeset
908 (UNSPEC_VHSUB_S "s") (UNSPEC_VHSUB_U "u")
kono
parents: 68
diff changeset
909 (UNSPEC_VQSUB_S "s") (UNSPEC_VQSUB_U "u")
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
910 (UNSPEC_VABAL_S "s") (UNSPEC_VABAL_U "u")
111
kono
parents: 68
diff changeset
911 (UNSPEC_VABD_S "s") (UNSPEC_VABD_U "u")
kono
parents: 68
diff changeset
912 (UNSPEC_VABDL_S "s") (UNSPEC_VABDL_U "u")
kono
parents: 68
diff changeset
913 (UNSPEC_VMAX "s") (UNSPEC_VMAX_U "u")
kono
parents: 68
diff changeset
914 (UNSPEC_VMIN "s") (UNSPEC_VMIN_U "u")
kono
parents: 68
diff changeset
915 (UNSPEC_VPADDL_S "s") (UNSPEC_VPADDL_U "u")
kono
parents: 68
diff changeset
916 (UNSPEC_VPADAL_S "s") (UNSPEC_VPADAL_U "u")
kono
parents: 68
diff changeset
917 (UNSPEC_VPMAX "s") (UNSPEC_VPMAX_U "u")
kono
parents: 68
diff changeset
918 (UNSPEC_VPMIN "s") (UNSPEC_VPMIN_U "u")
kono
parents: 68
diff changeset
919 (UNSPEC_VCVT_S "s") (UNSPEC_VCVT_U "u")
kono
parents: 68
diff changeset
920 (UNSPEC_VCVTA_S "s") (UNSPEC_VCVTA_U "u")
kono
parents: 68
diff changeset
921 (UNSPEC_VCVTM_S "s") (UNSPEC_VCVTM_U "u")
kono
parents: 68
diff changeset
922 (UNSPEC_VCVTN_S "s") (UNSPEC_VCVTN_U "u")
kono
parents: 68
diff changeset
923 (UNSPEC_VCVTP_S "s") (UNSPEC_VCVTP_U "u")
kono
parents: 68
diff changeset
924 (UNSPEC_VCVT_S_N "s") (UNSPEC_VCVT_U_N "u")
kono
parents: 68
diff changeset
925 (UNSPEC_VCVT_HF_S_N "s") (UNSPEC_VCVT_HF_U_N "u")
kono
parents: 68
diff changeset
926 (UNSPEC_VCVT_SI_S_N "s") (UNSPEC_VCVT_SI_U_N "u")
kono
parents: 68
diff changeset
927 (UNSPEC_VQMOVN_S "s") (UNSPEC_VQMOVN_U "u")
kono
parents: 68
diff changeset
928 (UNSPEC_VMOVL_S "s") (UNSPEC_VMOVL_U "u")
kono
parents: 68
diff changeset
929 (UNSPEC_VSHL_S "s") (UNSPEC_VSHL_U "u")
kono
parents: 68
diff changeset
930 (UNSPEC_VRSHL_S "s") (UNSPEC_VRSHL_U "u")
kono
parents: 68
diff changeset
931 (UNSPEC_VQSHL_S "s") (UNSPEC_VQSHL_U "u")
kono
parents: 68
diff changeset
932 (UNSPEC_VQRSHL_S "s") (UNSPEC_VQRSHL_U "u")
kono
parents: 68
diff changeset
933 (UNSPEC_VSHR_S_N "s") (UNSPEC_VSHR_U_N "u")
kono
parents: 68
diff changeset
934 (UNSPEC_VRSHR_S_N "s") (UNSPEC_VRSHR_U_N "u")
kono
parents: 68
diff changeset
935 (UNSPEC_VQSHRN_S_N "s") (UNSPEC_VQSHRN_U_N "u")
kono
parents: 68
diff changeset
936 (UNSPEC_VQRSHRN_S_N "s") (UNSPEC_VQRSHRN_U_N "u")
kono
parents: 68
diff changeset
937 (UNSPEC_VQSHL_S_N "s") (UNSPEC_VQSHL_U_N "u")
kono
parents: 68
diff changeset
938 (UNSPEC_VSHLL_S_N "s") (UNSPEC_VSHLL_U_N "u")
kono
parents: 68
diff changeset
939 (UNSPEC_VSRA_S_N "s") (UNSPEC_VSRA_U_N "u")
kono
parents: 68
diff changeset
940 (UNSPEC_VRSRA_S_N "s") (UNSPEC_VRSRA_U_N "u")
kono
parents: 68
diff changeset
941 (UNSPEC_VCVTH_S "s") (UNSPEC_VCVTH_U "u")
kono
parents: 68
diff changeset
942 (UNSPEC_DOT_S "s") (UNSPEC_DOT_U "u")
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
943 (UNSPEC_DOT_US "us") (UNSPEC_DOT_SU "su")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
944 (UNSPEC_SSAT16 "s") (UNSPEC_USAT16 "u")
111
kono
parents: 68
diff changeset
945 ])
kono
parents: 68
diff changeset
946
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
947 (define_int_attr vfml_half
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
948 [(UNSPEC_VFML_HI "high") (UNSPEC_VFML_LO "low")])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
949
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
950 (define_int_attr vfml_half_selector
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
951 [(UNSPEC_VFML_HI "true") (UNSPEC_VFML_LO "false")])
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
952
111
kono
parents: 68
diff changeset
953 (define_int_attr vcvth_op
kono
parents: 68
diff changeset
954 [(UNSPEC_VCVTA_S "a") (UNSPEC_VCVTA_U "a")
kono
parents: 68
diff changeset
955 (UNSPEC_VCVTM_S "m") (UNSPEC_VCVTM_U "m")
kono
parents: 68
diff changeset
956 (UNSPEC_VCVTN_S "n") (UNSPEC_VCVTN_U "n")
kono
parents: 68
diff changeset
957 (UNSPEC_VCVTP_S "p") (UNSPEC_VCVTP_U "p")])
kono
parents: 68
diff changeset
958
kono
parents: 68
diff changeset
959 (define_int_attr fp16_rnd_str
kono
parents: 68
diff changeset
960 [(UNSPEC_VRND "rnd") (UNSPEC_VRNDA "rnda")
kono
parents: 68
diff changeset
961 (UNSPEC_VRNDM "rndm") (UNSPEC_VRNDN "rndn")
kono
parents: 68
diff changeset
962 (UNSPEC_VRNDP "rndp") (UNSPEC_VRNDX "rndx")])
kono
parents: 68
diff changeset
963
kono
parents: 68
diff changeset
964 (define_int_attr fp16_rnd_insn
kono
parents: 68
diff changeset
965 [(UNSPEC_VRND "vrintz") (UNSPEC_VRNDA "vrinta")
kono
parents: 68
diff changeset
966 (UNSPEC_VRNDM "vrintm") (UNSPEC_VRNDN "vrintn")
kono
parents: 68
diff changeset
967 (UNSPEC_VRNDP "vrintp") (UNSPEC_VRNDX "vrintx")])
kono
parents: 68
diff changeset
968
kono
parents: 68
diff changeset
969 (define_int_attr cmp_op_unsp [(UNSPEC_VCEQ "eq") (UNSPEC_VCGT "gt")
kono
parents: 68
diff changeset
970 (UNSPEC_VCGE "ge") (UNSPEC_VCLE "le")
kono
parents: 68
diff changeset
971 (UNSPEC_VCLT "lt") (UNSPEC_VCAGE "ge")
kono
parents: 68
diff changeset
972 (UNSPEC_VCAGT "gt") (UNSPEC_VCALE "le")
kono
parents: 68
diff changeset
973 (UNSPEC_VCALT "lt")])
kono
parents: 68
diff changeset
974
kono
parents: 68
diff changeset
975 (define_int_attr r [
kono
parents: 68
diff changeset
976 (UNSPEC_VRHADD_S "r") (UNSPEC_VRHADD_U "r")
kono
parents: 68
diff changeset
977 (UNSPEC_VHADD_S "") (UNSPEC_VHADD_U "")
kono
parents: 68
diff changeset
978 (UNSPEC_VADDHN "") (UNSPEC_VRADDHN "r")
kono
parents: 68
diff changeset
979 (UNSPEC_VQDMULH "") (UNSPEC_VQRDMULH "r")
kono
parents: 68
diff changeset
980 (UNSPEC_VQDMULH_LANE "") (UNSPEC_VQRDMULH_LANE "r")
kono
parents: 68
diff changeset
981 (UNSPEC_VSUBHN "") (UNSPEC_VRSUBHN "r")
kono
parents: 68
diff changeset
982 ])
kono
parents: 68
diff changeset
983
kono
parents: 68
diff changeset
984 (define_int_attr maxmin [
kono
parents: 68
diff changeset
985 (UNSPEC_VMAX "max") (UNSPEC_VMAX_U "max")
kono
parents: 68
diff changeset
986 (UNSPEC_VMIN "min") (UNSPEC_VMIN_U "min")
kono
parents: 68
diff changeset
987 (UNSPEC_VPMAX "max") (UNSPEC_VPMAX_U "max")
kono
parents: 68
diff changeset
988 (UNSPEC_VPMIN "min") (UNSPEC_VPMIN_U "min")
kono
parents: 68
diff changeset
989 ])
kono
parents: 68
diff changeset
990
kono
parents: 68
diff changeset
991 (define_int_attr fmaxmin [
kono
parents: 68
diff changeset
992 (UNSPEC_VMAXNM "fmax") (UNSPEC_VMINNM "fmin")])
kono
parents: 68
diff changeset
993
kono
parents: 68
diff changeset
994 (define_int_attr fmaxmin_op [
kono
parents: 68
diff changeset
995 (UNSPEC_VMAXNM "vmaxnm") (UNSPEC_VMINNM "vminnm")
kono
parents: 68
diff changeset
996 ])
kono
parents: 68
diff changeset
997
kono
parents: 68
diff changeset
998 (define_int_attr shift_op [
kono
parents: 68
diff changeset
999 (UNSPEC_VSHL_S "shl") (UNSPEC_VSHL_U "shl")
kono
parents: 68
diff changeset
1000 (UNSPEC_VRSHL_S "rshl") (UNSPEC_VRSHL_U "rshl")
kono
parents: 68
diff changeset
1001 (UNSPEC_VQSHL_S "qshl") (UNSPEC_VQSHL_U "qshl")
kono
parents: 68
diff changeset
1002 (UNSPEC_VQRSHL_S "qrshl") (UNSPEC_VQRSHL_U "qrshl")
kono
parents: 68
diff changeset
1003 (UNSPEC_VSHR_S_N "shr") (UNSPEC_VSHR_U_N "shr")
kono
parents: 68
diff changeset
1004 (UNSPEC_VRSHR_S_N "rshr") (UNSPEC_VRSHR_U_N "rshr")
kono
parents: 68
diff changeset
1005 (UNSPEC_VSHRN_N "shrn") (UNSPEC_VRSHRN_N "rshrn")
kono
parents: 68
diff changeset
1006 (UNSPEC_VQRSHRN_S_N "qrshrn") (UNSPEC_VQRSHRN_U_N "qrshrn")
kono
parents: 68
diff changeset
1007 (UNSPEC_VQSHRN_S_N "qshrn") (UNSPEC_VQSHRN_U_N "qshrn")
kono
parents: 68
diff changeset
1008 (UNSPEC_VQSHRUN_N "qshrun") (UNSPEC_VQRSHRUN_N "qrshrun")
kono
parents: 68
diff changeset
1009 (UNSPEC_VSRA_S_N "sra") (UNSPEC_VSRA_U_N "sra")
kono
parents: 68
diff changeset
1010 (UNSPEC_VRSRA_S_N "rsra") (UNSPEC_VRSRA_U_N "rsra")
kono
parents: 68
diff changeset
1011 ])
kono
parents: 68
diff changeset
1012
kono
parents: 68
diff changeset
1013 ;; Standard names for floating point to integral rounding instructions.
kono
parents: 68
diff changeset
1014 (define_int_attr vrint_pattern [(UNSPEC_VRINTZ "btrunc") (UNSPEC_VRINTP "ceil")
kono
parents: 68
diff changeset
1015 (UNSPEC_VRINTA "round") (UNSPEC_VRINTM "floor")
kono
parents: 68
diff changeset
1016 (UNSPEC_VRINTR "nearbyint") (UNSPEC_VRINTX "rint")])
kono
parents: 68
diff changeset
1017
kono
parents: 68
diff changeset
1018 ;; Suffixes for vrint instructions specifying rounding modes.
kono
parents: 68
diff changeset
1019 (define_int_attr vrint_variant [(UNSPEC_VRINTZ "z") (UNSPEC_VRINTP "p")
kono
parents: 68
diff changeset
1020 (UNSPEC_VRINTA "a") (UNSPEC_VRINTM "m")
kono
parents: 68
diff changeset
1021 (UNSPEC_VRINTR "r") (UNSPEC_VRINTX "x")])
kono
parents: 68
diff changeset
1022
kono
parents: 68
diff changeset
1023 ;; Some of the vrint instuctions are predicable.
kono
parents: 68
diff changeset
1024 (define_int_attr vrint_predicable [(UNSPEC_VRINTZ "yes") (UNSPEC_VRINTP "no")
kono
parents: 68
diff changeset
1025 (UNSPEC_VRINTA "no") (UNSPEC_VRINTM "no")
kono
parents: 68
diff changeset
1026 (UNSPEC_VRINTR "yes") (UNSPEC_VRINTX "yes")])
kono
parents: 68
diff changeset
1027
kono
parents: 68
diff changeset
1028 (define_int_attr vrint_conds [(UNSPEC_VRINTZ "nocond") (UNSPEC_VRINTP "unconditional")
kono
parents: 68
diff changeset
1029 (UNSPEC_VRINTA "unconditional") (UNSPEC_VRINTM "unconditional")
kono
parents: 68
diff changeset
1030 (UNSPEC_VRINTR "nocond") (UNSPEC_VRINTX "nocond")])
kono
parents: 68
diff changeset
1031
kono
parents: 68
diff changeset
1032 (define_int_attr nvrint_variant [(UNSPEC_NVRINTZ "z") (UNSPEC_NVRINTP "p")
kono
parents: 68
diff changeset
1033 (UNSPEC_NVRINTA "a") (UNSPEC_NVRINTM "m")
kono
parents: 68
diff changeset
1034 (UNSPEC_NVRINTX "x") (UNSPEC_NVRINTN "n")])
kono
parents: 68
diff changeset
1035
kono
parents: 68
diff changeset
1036 (define_int_attr crc_variant [(UNSPEC_CRC32B "crc32b") (UNSPEC_CRC32H "crc32h")
kono
parents: 68
diff changeset
1037 (UNSPEC_CRC32W "crc32w") (UNSPEC_CRC32CB "crc32cb")
kono
parents: 68
diff changeset
1038 (UNSPEC_CRC32CH "crc32ch") (UNSPEC_CRC32CW "crc32cw")])
kono
parents: 68
diff changeset
1039
kono
parents: 68
diff changeset
1040 (define_int_attr crc_mode [(UNSPEC_CRC32B "QI") (UNSPEC_CRC32H "HI")
kono
parents: 68
diff changeset
1041 (UNSPEC_CRC32W "SI") (UNSPEC_CRC32CB "QI")
kono
parents: 68
diff changeset
1042 (UNSPEC_CRC32CH "HI") (UNSPEC_CRC32CW "SI")])
kono
parents: 68
diff changeset
1043
kono
parents: 68
diff changeset
1044 (define_int_attr crypto_pattern [(UNSPEC_SHA1H "sha1h") (UNSPEC_AESMC "aesmc")
kono
parents: 68
diff changeset
1045 (UNSPEC_AESIMC "aesimc") (UNSPEC_AESD "aesd")
kono
parents: 68
diff changeset
1046 (UNSPEC_AESE "aese") (UNSPEC_SHA1SU1 "sha1su1")
kono
parents: 68
diff changeset
1047 (UNSPEC_SHA256SU0 "sha256su0") (UNSPEC_SHA1C "sha1c")
kono
parents: 68
diff changeset
1048 (UNSPEC_SHA1M "sha1m") (UNSPEC_SHA1P "sha1p")
kono
parents: 68
diff changeset
1049 (UNSPEC_SHA1SU0 "sha1su0") (UNSPEC_SHA256H "sha256h")
kono
parents: 68
diff changeset
1050 (UNSPEC_SHA256H2 "sha256h2")
kono
parents: 68
diff changeset
1051 (UNSPEC_SHA256SU1 "sha256su1")])
kono
parents: 68
diff changeset
1052
kono
parents: 68
diff changeset
1053 (define_int_attr crypto_type
kono
parents: 68
diff changeset
1054 [(UNSPEC_AESE "crypto_aese") (UNSPEC_AESD "crypto_aese")
kono
parents: 68
diff changeset
1055 (UNSPEC_AESMC "crypto_aesmc") (UNSPEC_AESIMC "crypto_aesmc")
kono
parents: 68
diff changeset
1056 (UNSPEC_SHA1C "crypto_sha1_slow") (UNSPEC_SHA1P "crypto_sha1_slow")
kono
parents: 68
diff changeset
1057 (UNSPEC_SHA1M "crypto_sha1_slow") (UNSPEC_SHA1SU1 "crypto_sha1_fast")
kono
parents: 68
diff changeset
1058 (UNSPEC_SHA1SU0 "crypto_sha1_xor") (UNSPEC_SHA256H "crypto_sha256_slow")
kono
parents: 68
diff changeset
1059 (UNSPEC_SHA256H2 "crypto_sha256_slow") (UNSPEC_SHA256SU0 "crypto_sha256_fast")
kono
parents: 68
diff changeset
1060 (UNSPEC_SHA256SU1 "crypto_sha256_slow")])
kono
parents: 68
diff changeset
1061
kono
parents: 68
diff changeset
1062 (define_int_attr crypto_size_sfx [(UNSPEC_SHA1H "32") (UNSPEC_AESMC "8")
kono
parents: 68
diff changeset
1063 (UNSPEC_AESIMC "8") (UNSPEC_AESD "8")
kono
parents: 68
diff changeset
1064 (UNSPEC_AESE "8") (UNSPEC_SHA1SU1 "32")
kono
parents: 68
diff changeset
1065 (UNSPEC_SHA256SU0 "32") (UNSPEC_SHA1C "32")
kono
parents: 68
diff changeset
1066 (UNSPEC_SHA1M "32") (UNSPEC_SHA1P "32")
kono
parents: 68
diff changeset
1067 (UNSPEC_SHA1SU0 "32") (UNSPEC_SHA256H "32")
kono
parents: 68
diff changeset
1068 (UNSPEC_SHA256H2 "32") (UNSPEC_SHA256SU1 "32")])
kono
parents: 68
diff changeset
1069
kono
parents: 68
diff changeset
1070 (define_int_attr crypto_mode [(UNSPEC_SHA1H "V4SI") (UNSPEC_AESMC "V16QI")
kono
parents: 68
diff changeset
1071 (UNSPEC_AESIMC "V16QI") (UNSPEC_AESD "V16QI")
kono
parents: 68
diff changeset
1072 (UNSPEC_AESE "V16QI") (UNSPEC_SHA1SU1 "V4SI")
kono
parents: 68
diff changeset
1073 (UNSPEC_SHA256SU0 "V4SI") (UNSPEC_SHA1C "V4SI")
kono
parents: 68
diff changeset
1074 (UNSPEC_SHA1M "V4SI") (UNSPEC_SHA1P "V4SI")
kono
parents: 68
diff changeset
1075 (UNSPEC_SHA1SU0 "V4SI") (UNSPEC_SHA256H "V4SI")
kono
parents: 68
diff changeset
1076 (UNSPEC_SHA256H2 "V4SI") (UNSPEC_SHA256SU1 "V4SI")])
kono
parents: 68
diff changeset
1077
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1078 (define_int_attr rot [(UNSPEC_VCADD90 "90")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1079 (UNSPEC_VCADD270 "270")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1080 (UNSPEC_VCMLA "0")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1081 (UNSPEC_VCMLA90 "90")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1082 (UNSPEC_VCMLA180 "180")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1083 (UNSPEC_VCMLA270 "270")])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1084
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1085 (define_int_attr simd32_op [(UNSPEC_QADD8 "qadd8") (UNSPEC_QSUB8 "qsub8")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1086 (UNSPEC_SHADD8 "shadd8") (UNSPEC_SHSUB8 "shsub8")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1087 (UNSPEC_UHADD8 "uhadd8") (UNSPEC_UHSUB8 "uhsub8")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1088 (UNSPEC_UQADD8 "uqadd8") (UNSPEC_UQSUB8 "uqsub8")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1089 (UNSPEC_QADD16 "qadd16") (UNSPEC_QASX "qasx")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1090 (UNSPEC_QSAX "qsax") (UNSPEC_QSUB16 "qsub16")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1091 (UNSPEC_SHADD16 "shadd16") (UNSPEC_SHASX "shasx")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1092 (UNSPEC_SHSAX "shsax") (UNSPEC_SHSUB16 "shsub16")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1093 (UNSPEC_UHADD16 "uhadd16") (UNSPEC_UHASX "uhasx")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1094 (UNSPEC_UHSAX "uhsax") (UNSPEC_UHSUB16 "uhsub16")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1095 (UNSPEC_UQADD16 "uqadd16") (UNSPEC_UQASX "uqasx")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1096 (UNSPEC_UQSAX "uqsax") (UNSPEC_UQSUB16 "uqsub16")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1097 (UNSPEC_SMUSD "smusd") (UNSPEC_SMUSDX "smusdx")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1098 (UNSPEC_SXTAB16 "sxtab16") (UNSPEC_UXTAB16 "uxtab16")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1099 (UNSPEC_USAD8 "usad8") (UNSPEC_SMLALD "smlald")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1100 (UNSPEC_SMLALDX "smlaldx") (UNSPEC_SMLSLD "smlsld")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1101 (UNSPEC_SMLSLDX "smlsldx")(UNSPEC_SADD8 "sadd8")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1102 (UNSPEC_UADD8 "uadd8") (UNSPEC_SSUB8 "ssub8")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1103 (UNSPEC_USUB8 "usub8") (UNSPEC_SADD16 "sadd16")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1104 (UNSPEC_SASX "sasx") (UNSPEC_SSAX "ssax")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1105 (UNSPEC_SSUB16 "ssub16") (UNSPEC_UADD16 "uadd16")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1106 (UNSPEC_UASX "uasx") (UNSPEC_USAX "usax")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1107 (UNSPEC_USUB16 "usub16") (UNSPEC_SMLAD "smlad")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1108 (UNSPEC_SMLADX "smladx") (UNSPEC_SMLSD "smlsd")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1109 (UNSPEC_SMLSDX "smlsdx") (UNSPEC_SMUAD "smuad")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1110 (UNSPEC_SMUADX "smuadx") (UNSPEC_SSAT16 "ssat16")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1111 (UNSPEC_USAT16 "usat16")])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1112
111
kono
parents: 68
diff changeset
1113 ;; Both kinds of return insn.
kono
parents: 68
diff changeset
1114 (define_code_iterator RETURNS [return simple_return])
kono
parents: 68
diff changeset
1115 (define_code_attr return_str [(return "") (simple_return "simple_")])
kono
parents: 68
diff changeset
1116 (define_code_attr return_simple_p [(return "false") (simple_return "true")])
kono
parents: 68
diff changeset
1117 (define_code_attr return_cond_false [(return " && USE_RETURN_INSN (FALSE)")
kono
parents: 68
diff changeset
1118 (simple_return " && use_simple_return_p ()")])
kono
parents: 68
diff changeset
1119 (define_code_attr return_cond_true [(return " && USE_RETURN_INSN (TRUE)")
kono
parents: 68
diff changeset
1120 (simple_return " && use_simple_return_p ()")])
kono
parents: 68
diff changeset
1121
kono
parents: 68
diff changeset
1122 ;; Attributes for VQRDMLAH/VQRDMLSH
kono
parents: 68
diff changeset
1123 (define_int_attr neon_rdma_as [(UNSPEC_VQRDMLAH "a") (UNSPEC_VQRDMLSH "s")])
kono
parents: 68
diff changeset
1124
kono
parents: 68
diff changeset
1125 ;; Attributes for VFMA_LANE/ VFMS_LANE
kono
parents: 68
diff changeset
1126 (define_int_attr neon_vfm_lane_as
kono
parents: 68
diff changeset
1127 [(UNSPEC_VFMA_LANE "a") (UNSPEC_VFMS_LANE "s")])
kono
parents: 68
diff changeset
1128
kono
parents: 68
diff changeset
1129 ;; An iterator for the CDP coprocessor instructions
kono
parents: 68
diff changeset
1130 (define_int_iterator CDPI [VUNSPEC_CDP VUNSPEC_CDP2])
kono
parents: 68
diff changeset
1131 (define_int_attr cdp [(VUNSPEC_CDP "cdp") (VUNSPEC_CDP2 "cdp2")])
kono
parents: 68
diff changeset
1132 (define_int_attr CDP [(VUNSPEC_CDP "CDP") (VUNSPEC_CDP2 "CDP2")])
kono
parents: 68
diff changeset
1133
kono
parents: 68
diff changeset
1134 ;; An iterator for the LDC coprocessor instruction
kono
parents: 68
diff changeset
1135 (define_int_iterator LDCI [VUNSPEC_LDC VUNSPEC_LDC2
kono
parents: 68
diff changeset
1136 VUNSPEC_LDCL VUNSPEC_LDC2L])
kono
parents: 68
diff changeset
1137 (define_int_attr ldc [(VUNSPEC_LDC "ldc") (VUNSPEC_LDC2 "ldc2")
kono
parents: 68
diff changeset
1138 (VUNSPEC_LDCL "ldcl") (VUNSPEC_LDC2L "ldc2l")])
kono
parents: 68
diff changeset
1139 (define_int_attr LDC [(VUNSPEC_LDC "LDC") (VUNSPEC_LDC2 "LDC2")
kono
parents: 68
diff changeset
1140 (VUNSPEC_LDCL "LDCL") (VUNSPEC_LDC2L "LDC2L")])
kono
parents: 68
diff changeset
1141
kono
parents: 68
diff changeset
1142 ;; An iterator for the STC coprocessor instructions
kono
parents: 68
diff changeset
1143 (define_int_iterator STCI [VUNSPEC_STC VUNSPEC_STC2
kono
parents: 68
diff changeset
1144 VUNSPEC_STCL VUNSPEC_STC2L])
kono
parents: 68
diff changeset
1145 (define_int_attr stc [(VUNSPEC_STC "stc") (VUNSPEC_STC2 "stc2")
kono
parents: 68
diff changeset
1146 (VUNSPEC_STCL "stcl") (VUNSPEC_STC2L "stc2l")])
kono
parents: 68
diff changeset
1147 (define_int_attr STC [(VUNSPEC_STC "STC") (VUNSPEC_STC2 "STC2")
kono
parents: 68
diff changeset
1148 (VUNSPEC_STCL "STCL") (VUNSPEC_STC2L "STC2L")])
kono
parents: 68
diff changeset
1149
kono
parents: 68
diff changeset
1150 ;; An iterator for the MCR coprocessor instructions
kono
parents: 68
diff changeset
1151 (define_int_iterator MCRI [VUNSPEC_MCR VUNSPEC_MCR2])
kono
parents: 68
diff changeset
1152
kono
parents: 68
diff changeset
1153 (define_int_attr mcr [(VUNSPEC_MCR "mcr") (VUNSPEC_MCR2 "mcr2")])
kono
parents: 68
diff changeset
1154 (define_int_attr MCR [(VUNSPEC_MCR "MCR") (VUNSPEC_MCR2 "MCR2")])
kono
parents: 68
diff changeset
1155
kono
parents: 68
diff changeset
1156 ;; An iterator for the MRC coprocessor instructions
kono
parents: 68
diff changeset
1157 (define_int_iterator MRCI [VUNSPEC_MRC VUNSPEC_MRC2])
kono
parents: 68
diff changeset
1158
kono
parents: 68
diff changeset
1159 (define_int_attr mrc [(VUNSPEC_MRC "mrc") (VUNSPEC_MRC2 "mrc2")])
kono
parents: 68
diff changeset
1160 (define_int_attr MRC [(VUNSPEC_MRC "MRC") (VUNSPEC_MRC2 "MRC2")])
kono
parents: 68
diff changeset
1161
kono
parents: 68
diff changeset
1162 ;; An iterator for the MCRR coprocessor instructions
kono
parents: 68
diff changeset
1163 (define_int_iterator MCRRI [VUNSPEC_MCRR VUNSPEC_MCRR2])
kono
parents: 68
diff changeset
1164
kono
parents: 68
diff changeset
1165 (define_int_attr mcrr [(VUNSPEC_MCRR "mcrr") (VUNSPEC_MCRR2 "mcrr2")])
kono
parents: 68
diff changeset
1166 (define_int_attr MCRR [(VUNSPEC_MCRR "MCRR") (VUNSPEC_MCRR2 "MCRR2")])
kono
parents: 68
diff changeset
1167
kono
parents: 68
diff changeset
1168 ;; An iterator for the MRRC coprocessor instructions
kono
parents: 68
diff changeset
1169 (define_int_iterator MRRCI [VUNSPEC_MRRC VUNSPEC_MRRC2])
kono
parents: 68
diff changeset
1170
kono
parents: 68
diff changeset
1171 (define_int_attr mrrc [(VUNSPEC_MRRC "mrrc") (VUNSPEC_MRRC2 "mrrc2")])
kono
parents: 68
diff changeset
1172 (define_int_attr MRRC [(VUNSPEC_MRRC "MRRC") (VUNSPEC_MRRC2 "MRRC2")])
kono
parents: 68
diff changeset
1173
kono
parents: 68
diff changeset
1174 (define_int_attr opsuffix [(UNSPEC_DOT_S "s8")
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1175 (UNSPEC_DOT_U "u8")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1176 (UNSPEC_DOT_US "s8")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1177 (UNSPEC_DOT_SU "u8")
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1178 ])
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1179
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1180 (define_int_attr smlaw_op [(UNSPEC_SMLAWB "smlawb") (UNSPEC_SMLAWT "smlawt")])