1 //===-- LeonFeatures.td - Describe the Leon Features -------*- tablegen -*-===//
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
7 //===----------------------------------------------------------------------===//
10 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
14 // UMAC and SMAC support for LEON3 and LEON4 processors.
15 //===----------------------------------------------------------------------===//
17 //support to casa instruction; for leon3 subtarget only
18 def UMACSMACSupport : SubtargetFeature<
22 "Enable UMAC and SMAC for LEON3 and LEON4 processors"
26 //===----------------------------------------------------------------------===//
27 // CASA Support differs between LEON3-FT GR712RC and LEON3-FT UT699
28 // We need to have the option to switch this on and off.
29 //===----------------------------------------------------------------------===//
31 //support to casa instruction; for leon3 subtarget only
32 def LeonCASA : SubtargetFeature<
36 "Enable CASA instruction for LEON3 and LEON4 processors"
39 def InsertNOPLoad: SubtargetFeature<
43 "LEON3 erratum fix: Insert a NOP instruction after every single-cycle load instruction when the next instruction is another load/store instruction"
46 def DetectRoundChange : SubtargetFeature<
50 "LEON3 erratum detection: Detects any rounding mode change "
51 "request: use only the round-to-nearest rounding mode"
54 def FixAllFDIVSQRT : SubtargetFeature<
58 "LEON erratum fix: Fix FDIVS/FDIVD/FSQRTS/FSQRTD instructions with NOPs and floating-point store"
62 : SubtargetFeature<"leoncyclecounter", "HasLeonCycleCounter", "true",
63 "Use the Leon cycle counter register">;