[Xtensa] Move XtensaUtils to MCTargetDesc
[llvm-project.git] / llvm / test / TableGen / ProcessorUniqueNames.td
blob8fdc6c42b857d2537a825a889c591fd519ce76d0
1 // RUN: not llvm-tblgen -gen-subtarget -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s
2 // Verify that processors with same names result in an error.
4 include "llvm/Target/Target.td"
6 def MyTarget : Target;
8 def ProcessorB : ProcessorModel<"NameA", NoSchedModel, []>;
10 // CHECK: [[FILE]]:[[@LINE+2]]:5: error: Processor `NameA` is already defined.
11 // CHECK: [[FILE]]:[[@LINE-3]]:5: note: Previous definition here.
12 def ProcessorA : ProcessorModel<"NameA", NoSchedModel, []>;