blob: d9efe094d07891dc746be732a023ab7c66c19b2d [file] [log] [blame]
Chris Dewhurste3b86452016-05-09 11:55:15 +00001//===-- LeonFeatures.td - Describe the Leon Features -------*- tablegen -*-===//
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//
11//===----------------------------------------------------------------------===//
12
Chris Dewhurst4f7cac32016-05-23 10:56:36 +000013
Chris Dewhurst3202f062016-07-08 15:33:56 +000014//===----------------------------------------------------------------------===//
15// UMAC and SMAC support for LEON3 and LEON4 processors.
16//===----------------------------------------------------------------------===//
Chris Dewhurst0c1e0022016-06-19 11:03:28 +000017
James Y Knight2cc9da92016-08-12 14:48:09 +000018//support to casa instruction; for leon3 subtarget only
19def UMACSMACSupport : SubtargetFeature<
20 "hasumacsmac",
21 "HasUmacSmac",
22 "true",
23 "Enable UMAC and SMAC for LEON3 and LEON4 processors"
24>;
25
Chris Dewhurst0c1e0022016-06-19 11:03:28 +000026
Chris Dewhurst3202f062016-07-08 15:33:56 +000027//===----------------------------------------------------------------------===//
James Y Knight2cc9da92016-08-12 14:48:09 +000028// CASA Support differs between LEON3-FT GR712RC and LEON3-FT UT699
29// We need to have the option to switch this on and off.
Chris Dewhurst3202f062016-07-08 15:33:56 +000030//===----------------------------------------------------------------------===//
Chris Dewhurst0c1e0022016-06-19 11:03:28 +000031
James Y Knight2cc9da92016-08-12 14:48:09 +000032//support to casa instruction; for leon3 subtarget only
33def LeonCASA : SubtargetFeature<
34 "hasleoncasa",
35 "HasLeonCasa",
36 "true",
37 "Enable CASA instruction for LEON3 and LEON4 processors"
38>;
Chris Dewhurst3202f062016-07-08 15:33:56 +000039
Chris Dewhurst85013122016-10-10 08:53:06 +000040
41def ReplaceSDIV : SubtargetFeature<
42 "replacesdiv",
43 "PerformSDIVReplace",
44 "true",
45 "AT697E erratum fix: Do not emit SDIV, emit SDIVCC instead"
46>;
47
James Y Knight2cc9da92016-08-12 14:48:09 +000048def InsertNOPLoad: SubtargetFeature<
49 "insertnopload",
50 "InsertNOPLoad",
51 "true",
52 "LEON3 erratum fix: Insert a NOP instruction after every single-cycle load instruction when the next instruction is another load/store instruction"
53>;
Chris Dewhurst3202f062016-07-08 15:33:56 +000054
Chris Dewhurst2c3cdd62016-10-19 14:01:06 +000055def DetectRoundChange : SubtargetFeature<
56 "detectroundchange",
57 "DetectRoundChange",
58 "true",
59 "LEON3 erratum detection: Detects any rounding mode change "
60 "request: use only the round-to-nearest rounding mode"
61>;
62
James Y Knight2cc9da92016-08-12 14:48:09 +000063def FixAllFDIVSQRT : SubtargetFeature<
64 "fixallfdivsqrt",
65 "FixAllFDIVSQRT",
66 "true",
67 "LEON erratum fix: Fix FDIVS/FDIVD/FSQRTS/FSQRTD instructions with NOPs and floating-point store"
68>;