Fix a bug in !subst where TableGen would go and resubstitute text it had
[oota-llvm.git] / test / TableGen / TreeNames.td
1 // This tests to make sure we can parse tree patterns with names.
2 // RUN: tblgen %s
3
4 class TreeNode;
5 class RegisterClass;
6
7 def set  : TreeNode;
8 def plus : TreeNode;
9 def imm  : TreeNode;
10 def R32  : RegisterClass;
11
12 class Inst<dag T> {
13   dag Pattern = T;
14 }
15
16 def ADDrr32 : Inst<(set R32, (plus R32:$A, R32:$def))>;
17