blob: 00d4338af55b0dfd21b7c7dd92ac9c8222d5d629 [file] [log] [blame]
Richard Sandiford27d1cfe2013-07-19 16:09:03 +00001//===-- SystemZ.td - SystemZ processors and features ---------*- tblgen -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// Processor and feature definitions.
11//
12//===----------------------------------------------------------------------===//
13
14class SystemZFeature<string extname, string intname, string desc>
15 : Predicate<"Subtarget.has"##intname##"()">,
16 AssemblerPredicate<"Feature"##intname, extname>,
17 SubtargetFeature<extname, "Has"##intname, "true", desc>;
18
19def FeatureDistinctOps : SystemZFeature<
20 "distinct-ops", "DistinctOps",
21 "Assume that the distinct-operands facility is installed"
22>;
23
Richard Sandiforda68e6f52013-07-25 08:57:02 +000024def FeatureLoadStoreOnCond : SystemZFeature<
25 "load-store-on-cond", "LoadStoreOnCond",
26 "Assume that the load/store-on-condition facility is installed"
27>;
28
Richard Sandiford6cf80b32013-07-31 11:17:35 +000029def FeatureHighWord : SystemZFeature<
30 "high-word", "HighWord",
31 "Assume that the high-word facility is installed"
32>;
33
Richard Sandiford8e92c382013-08-21 08:58:08 +000034def FeatureFPExtension : SystemZFeature<
35 "fp-extension", "FPExtension",
36 "Assume that the floating-point extension facility is installed"
37>;
38
Richard Sandiford27d1cfe2013-07-19 16:09:03 +000039def : Processor<"z10", NoItineraries, []>;
Richard Sandiforda68e6f52013-07-25 08:57:02 +000040def : Processor<"z196", NoItineraries,
Richard Sandiford8e92c382013-08-21 08:58:08 +000041 [FeatureDistinctOps, FeatureLoadStoreOnCond, FeatureHighWord,
42 FeatureFPExtension]>;
Richard Sandiforda68e6f52013-07-25 08:57:02 +000043def : Processor<"zEC12", NoItineraries,
Richard Sandiford8e92c382013-08-21 08:58:08 +000044 [FeatureDistinctOps, FeatureLoadStoreOnCond, FeatureHighWord,
45 FeatureFPExtension]>;