[ARM] MVE integer min and max
[llvm-complete.git] / lib / Target / SystemZ / SystemZFeatures.td
blobdae795e845b0e3ffe5346b0970772ce42e7c2384
1 //===-- SystemZ.td - SystemZ processors and features ---------*- tblgen -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Feature definitions.
11 //===----------------------------------------------------------------------===//
13 class SystemZFeature<string extname, string intname, string desc>
14   : Predicate<"Subtarget->has"##intname##"()">,
15     AssemblerPredicate<"Feature"##intname, extname>,
16     SubtargetFeature<extname, "Has"##intname, "true", desc>;
18 class SystemZMissingFeature<string intname>
19   : Predicate<"!Subtarget->has"##intname##"()">;
21 class SystemZFeatureList<list<SystemZFeature> x> {
22   list<SystemZFeature> List = x;
25 class SystemZFeatureAdd<list<SystemZFeature> x, list<SystemZFeature> y>
26   : SystemZFeatureList<!listconcat(x, y)>;
28 //===----------------------------------------------------------------------===//
30 // New features added in the Ninth Edition of the z/Architecture
32 //===----------------------------------------------------------------------===//
34 def FeatureDistinctOps : SystemZFeature<
35   "distinct-ops", "DistinctOps",
36   "Assume that the distinct-operands facility is installed"
39 def FeatureFastSerialization : SystemZFeature<
40   "fast-serialization", "FastSerialization",
41   "Assume that the fast-serialization facility is installed"
44 def FeatureFPExtension : SystemZFeature<
45   "fp-extension", "FPExtension",
46   "Assume that the floating-point extension facility is installed"
49 def FeatureHighWord : SystemZFeature<
50   "high-word", "HighWord",
51   "Assume that the high-word facility is installed"
54 def FeatureInterlockedAccess1 : SystemZFeature<
55   "interlocked-access1", "InterlockedAccess1",
56   "Assume that interlocked-access facility 1 is installed"
58 def FeatureNoInterlockedAccess1 : SystemZMissingFeature<"InterlockedAccess1">;
60 def FeatureLoadStoreOnCond : SystemZFeature<
61   "load-store-on-cond", "LoadStoreOnCond",
62   "Assume that the load/store-on-condition facility is installed"
64 def FeatureNoLoadStoreOnCond : SystemZMissingFeature<"LoadStoreOnCond">;
66 def FeaturePopulationCount : SystemZFeature<
67   "population-count", "PopulationCount",
68   "Assume that the population-count facility is installed"
71 def FeatureMessageSecurityAssist3 : SystemZFeature<
72   "message-security-assist-extension3", "MessageSecurityAssist3",
73   "Assume that the message-security-assist extension facility 3 is installed"
76 def FeatureMessageSecurityAssist4 : SystemZFeature<
77   "message-security-assist-extension4", "MessageSecurityAssist4",
78   "Assume that the message-security-assist extension facility 4 is installed"
81 def FeatureResetReferenceBitsMultiple : SystemZFeature<
82   "reset-reference-bits-multiple", "ResetReferenceBitsMultiple",
83   "Assume that the reset-reference-bits-multiple facility is installed"
86 def Arch9NewFeatures : SystemZFeatureList<[
87     FeatureDistinctOps,
88     FeatureFastSerialization,
89     FeatureFPExtension,
90     FeatureHighWord,
91     FeatureInterlockedAccess1,
92     FeatureLoadStoreOnCond,
93     FeaturePopulationCount,
94     FeatureMessageSecurityAssist3,
95     FeatureMessageSecurityAssist4,
96     FeatureResetReferenceBitsMultiple
97 ]>;
99 //===----------------------------------------------------------------------===//
101 // New features added in the Tenth Edition of the z/Architecture
103 //===----------------------------------------------------------------------===//
105 def FeatureExecutionHint : SystemZFeature<
106   "execution-hint", "ExecutionHint",
107   "Assume that the execution-hint facility is installed"
110 def FeatureLoadAndTrap : SystemZFeature<
111   "load-and-trap", "LoadAndTrap",
112   "Assume that the load-and-trap facility is installed"
115 def FeatureMiscellaneousExtensions : SystemZFeature<
116   "miscellaneous-extensions", "MiscellaneousExtensions",
117   "Assume that the miscellaneous-extensions facility is installed"
120 def FeatureProcessorAssist : SystemZFeature<
121   "processor-assist", "ProcessorAssist",
122   "Assume that the processor-assist facility is installed"
125 def FeatureTransactionalExecution : SystemZFeature<
126   "transactional-execution", "TransactionalExecution",
127   "Assume that the transactional-execution facility is installed"
130 def FeatureDFPZonedConversion : SystemZFeature<
131   "dfp-zoned-conversion", "DFPZonedConversion",
132   "Assume that the DFP zoned-conversion facility is installed"
135 def FeatureEnhancedDAT2 : SystemZFeature<
136   "enhanced-dat-2", "EnhancedDAT2",
137   "Assume that the enhanced-DAT facility 2 is installed"
140 def Arch10NewFeatures : SystemZFeatureList<[
141     FeatureExecutionHint,
142     FeatureLoadAndTrap,
143     FeatureMiscellaneousExtensions,
144     FeatureProcessorAssist,
145     FeatureTransactionalExecution,
146     FeatureDFPZonedConversion,
147     FeatureEnhancedDAT2
150 //===----------------------------------------------------------------------===//
152 // New features added in the Eleventh Edition of the z/Architecture
154 //===----------------------------------------------------------------------===//
156 def FeatureLoadAndZeroRightmostByte : SystemZFeature<
157   "load-and-zero-rightmost-byte", "LoadAndZeroRightmostByte",
158   "Assume that the load-and-zero-rightmost-byte facility is installed"
161 def FeatureLoadStoreOnCond2 : SystemZFeature<
162   "load-store-on-cond-2", "LoadStoreOnCond2",
163   "Assume that the load/store-on-condition facility 2 is installed"
166 def FeatureMessageSecurityAssist5 : SystemZFeature<
167   "message-security-assist-extension5", "MessageSecurityAssist5",
168   "Assume that the message-security-assist extension facility 5 is installed"
171 def FeatureDFPPackedConversion : SystemZFeature<
172   "dfp-packed-conversion", "DFPPackedConversion",
173   "Assume that the DFP packed-conversion facility is installed"
176 def FeatureVector : SystemZFeature<
177   "vector", "Vector",
178   "Assume that the vectory facility is installed"
180 def FeatureNoVector : SystemZMissingFeature<"Vector">;
182 def Arch11NewFeatures : SystemZFeatureList<[
183     FeatureLoadAndZeroRightmostByte,
184     FeatureLoadStoreOnCond2,
185     FeatureMessageSecurityAssist5,
186     FeatureDFPPackedConversion,
187     FeatureVector
190 //===----------------------------------------------------------------------===//
192 // New features added in the Twelvth Edition of the z/Architecture
194 //===----------------------------------------------------------------------===//
196 def FeatureMiscellaneousExtensions2 : SystemZFeature<
197   "miscellaneous-extensions-2", "MiscellaneousExtensions2",
198   "Assume that the miscellaneous-extensions facility 2 is installed"
201 def FeatureGuardedStorage : SystemZFeature<
202   "guarded-storage", "GuardedStorage",
203   "Assume that the guarded-storage facility is installed"
206 def FeatureMessageSecurityAssist7 : SystemZFeature<
207   "message-security-assist-extension7", "MessageSecurityAssist7",
208   "Assume that the message-security-assist extension facility 7 is installed"
211 def FeatureMessageSecurityAssist8 : SystemZFeature<
212   "message-security-assist-extension8", "MessageSecurityAssist8",
213   "Assume that the message-security-assist extension facility 8 is installed"
216 def FeatureVectorEnhancements1 : SystemZFeature<
217   "vector-enhancements-1", "VectorEnhancements1",
218   "Assume that the vector enhancements facility 1 is installed"
220 def FeatureNoVectorEnhancements1 : SystemZMissingFeature<"VectorEnhancements1">;
222 def FeatureVectorPackedDecimal : SystemZFeature<
223   "vector-packed-decimal", "VectorPackedDecimal",
224   "Assume that the vector packed decimal facility is installed"
227 def FeatureInsertReferenceBitsMultiple : SystemZFeature<
228   "insert-reference-bits-multiple", "InsertReferenceBitsMultiple",
229   "Assume that the insert-reference-bits-multiple facility is installed"
232 def Arch12NewFeatures : SystemZFeatureList<[
233     FeatureMiscellaneousExtensions2,
234     FeatureGuardedStorage,
235     FeatureMessageSecurityAssist7,
236     FeatureMessageSecurityAssist8,
237     FeatureVectorEnhancements1,
238     FeatureVectorPackedDecimal,
239     FeatureInsertReferenceBitsMultiple
242 //===----------------------------------------------------------------------===//
244 // New features added in the Thirteenth Edition of the z/Architecture
246 //===----------------------------------------------------------------------===//
248 def FeatureMiscellaneousExtensions3 : SystemZFeature<
249   "miscellaneous-extensions-3", "MiscellaneousExtensions3",
250   "Assume that the miscellaneous-extensions facility 3 is installed"
253 def FeatureMessageSecurityAssist9 : SystemZFeature<
254   "message-security-assist-extension9", "MessageSecurityAssist9",
255   "Assume that the message-security-assist extension facility 9 is installed"
258 def FeatureVectorEnhancements2 : SystemZFeature<
259   "vector-enhancements-2", "VectorEnhancements2",
260   "Assume that the vector enhancements facility 2 is installed"
263 def FeatureVectorPackedDecimalEnhancement : SystemZFeature<
264   "vector-packed-decimal-enhancement", "VectorPackedDecimalEnhancement",
265   "Assume that the vector packed decimal enhancement facility is installed"
268 def FeatureEnhancedSort : SystemZFeature<
269   "enhanced-sort", "EnhancedSort",
270   "Assume that the enhanced-sort facility is installed"
273 def FeatureDeflateConversion : SystemZFeature<
274   "deflate-conversion", "DeflateConversion",
275   "Assume that the deflate-conversion facility is installed"
278 def Arch13NewFeatures : SystemZFeatureList<[
279     FeatureMiscellaneousExtensions3,
280     FeatureMessageSecurityAssist9,
281     FeatureVectorEnhancements2,
282     FeatureVectorPackedDecimalEnhancement,
283     FeatureEnhancedSort,
284     FeatureDeflateConversion
287 //===----------------------------------------------------------------------===//
289 // Cumulative supported and unsupported feature sets
291 //===----------------------------------------------------------------------===//
293 def Arch8SupportedFeatures
294   : SystemZFeatureList<[]>;
295 def Arch9SupportedFeatures
296   : SystemZFeatureAdd<Arch8SupportedFeatures.List,  Arch9NewFeatures.List>;
297 def Arch10SupportedFeatures
298   : SystemZFeatureAdd<Arch9SupportedFeatures.List,  Arch10NewFeatures.List>;
299 def Arch11SupportedFeatures
300   : SystemZFeatureAdd<Arch10SupportedFeatures.List, Arch11NewFeatures.List>;
301 def Arch12SupportedFeatures
302   : SystemZFeatureAdd<Arch11SupportedFeatures.List, Arch12NewFeatures.List>;
303 def Arch13SupportedFeatures
304   : SystemZFeatureAdd<Arch12SupportedFeatures.List, Arch13NewFeatures.List>;
306 def Arch13UnsupportedFeatures
307   : SystemZFeatureList<[]>;
308 def Arch12UnsupportedFeatures
309   : SystemZFeatureAdd<Arch13UnsupportedFeatures.List, Arch13NewFeatures.List>;
310 def Arch11UnsupportedFeatures
311   : SystemZFeatureAdd<Arch12UnsupportedFeatures.List, Arch12NewFeatures.List>;
312 def Arch10UnsupportedFeatures
313   : SystemZFeatureAdd<Arch11UnsupportedFeatures.List, Arch11NewFeatures.List>;
314 def Arch9UnsupportedFeatures
315   : SystemZFeatureAdd<Arch10UnsupportedFeatures.List, Arch10NewFeatures.List>;
316 def Arch8UnsupportedFeatures
317   : SystemZFeatureAdd<Arch9UnsupportedFeatures.List,  Arch9NewFeatures.List>;