diff options
Diffstat (limited to 'test/TableGen')
52 files changed, 250 insertions, 57 deletions
diff --git a/test/TableGen/2003-08-03-PassCode.td b/test/TableGen/2003-08-03-PassCode.td index c02f499b38..de7d6261b2 100644 --- a/test/TableGen/2003-08-03-PassCode.td +++ b/test/TableGen/2003-08-03-PassCode.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak class test<code C> { diff --git a/test/TableGen/2006-09-18-LargeInt.td b/test/TableGen/2006-09-18-LargeInt.td index 194699acc6..f7ae4eecce 100644 --- a/test/TableGen/2006-09-18-LargeInt.td +++ b/test/TableGen/2006-09-18-LargeInt.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep -- 4294901760 +// RUN: llvm-tblgen %s | grep -- 4294901760 // XFAIL: vg_leak def X { diff --git a/test/TableGen/2010-03-24-PrematureDefaults.td b/test/TableGen/2010-03-24-PrematureDefaults.td index 2ff2d42d27..24f6c93b3e 100644 --- a/test/TableGen/2010-03-24-PrematureDefaults.td +++ b/test/TableGen/2010-03-24-PrematureDefaults.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | FileCheck %s +// RUN: llvm-tblgen %s | FileCheck %s // XFAIL: vg_leak class A<int k, bits<2> x = 1> { diff --git a/test/TableGen/AnonDefinitionOnDemand.td b/test/TableGen/AnonDefinitionOnDemand.td index b10ad5870d..b6e0fc7df5 100644 --- a/test/TableGen/AnonDefinitionOnDemand.td +++ b/test/TableGen/AnonDefinitionOnDemand.td @@ -1,4 +1,4 @@ -// RUN: tblgen < %s +// RUN: llvm-tblgen < %s // XFAIL: vg_leak class foo<int X> { int THEVAL = X; } diff --git a/test/TableGen/BitsInitOverflow.td b/test/TableGen/BitsInitOverflow.td index 076b3f6f73..c3f9720c2d 100644 --- a/test/TableGen/BitsInitOverflow.td +++ b/test/TableGen/BitsInitOverflow.td @@ -1,4 +1,4 @@ -// RUN: not tblgen %s 2> /dev/null +// RUN: not llvm-tblgen %s 2> /dev/null def { bits<2> X = 5; // bitfield is too small, reject diff --git a/test/TableGen/CStyleComment.td b/test/TableGen/CStyleComment.td index 703ae6837e..55fb0e787b 100644 --- a/test/TableGen/CStyleComment.td +++ b/test/TableGen/CStyleComment.td @@ -1,6 +1,7 @@ // Test that multiline, nested, comments work correctly. // -// RUN: tblgen < %s +// RUN: llvm-tblgen < %s +// XFAIL: vg_leak /* Foo bar diff --git a/test/TableGen/Dag.td b/test/TableGen/Dag.td index d3481a550c..7ceb4e74b2 100644 --- a/test/TableGen/Dag.td +++ b/test/TableGen/Dag.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | FileCheck %s +// RUN: llvm-tblgen %s | FileCheck %s // XFAIL: vg_leak //===----------------------------------------------------------------------===// @@ -60,6 +60,7 @@ def VAL3 : bar<foo1, somedef1>; // CHECK-NEXT: dag Dag1 = (somedef1 1); // CHECK-NEXT: dag Dag2 = (somedef1 2); // CHECK-NEXT: dag Dag3 = (somedef1 2); +// CHECK-NEXT: NAME = ? // CHECK-NEXT: } @@ -68,4 +69,5 @@ def VAL4 : bar<foo2, somedef2>; // CHECK-NEXT: dag Dag1 = (somedef1 1); // CHECK-NEXT: dag Dag2 = (somedef2 2); // CHECK-NEXT: dag Dag3 = (somedef2 2); +// CHECK-NEXT: NAME = ? // CHECK-NEXT: } diff --git a/test/TableGen/DefmInherit.td b/test/TableGen/DefmInherit.td index 9e16670526..47fd81d2e7 100644 --- a/test/TableGen/DefmInherit.td +++ b/test/TableGen/DefmInherit.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep {zing = 4} | count 4 +// RUN: llvm-tblgen %s | grep {zing = 4} | count 4 // XFAIL: vg_leak class C1<int A, string B> { diff --git a/test/TableGen/DefmInsideMultiClass.td b/test/TableGen/DefmInsideMultiClass.td index 68cc12d568..e6fc019b1e 100644 --- a/test/TableGen/DefmInsideMultiClass.td +++ b/test/TableGen/DefmInsideMultiClass.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep ADDPSrr | count 1 +// RUN: llvm-tblgen %s | grep ADDPSrr | count 1 // XFAIL: vg_leak class Instruction<bits<4> opc, string Name> { diff --git a/test/TableGen/FieldAccess.td b/test/TableGen/FieldAccess.td index 8b4dc83e0a..d69caae8a6 100644 --- a/test/TableGen/FieldAccess.td +++ b/test/TableGen/FieldAccess.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak class Bla<string t> diff --git a/test/TableGen/ForwardRef.td b/test/TableGen/ForwardRef.td index 955cc14248..73884455b8 100644 --- a/test/TableGen/ForwardRef.td +++ b/test/TableGen/ForwardRef.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s -o - +// RUN: llvm-tblgen %s -o - // XFAIL: vg_leak class bar { diff --git a/test/TableGen/GeneralList.td b/test/TableGen/GeneralList.td index ca92a213b2..9e0c7df552 100644 --- a/test/TableGen/GeneralList.td +++ b/test/TableGen/GeneralList.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak // // Test to make sure that lists work with any data-type diff --git a/test/TableGen/Include.td b/test/TableGen/Include.td index 29ed5150c6..8783638f0c 100644 --- a/test/TableGen/Include.td +++ b/test/TableGen/Include.td @@ -1,4 +1,5 @@ -// RUN: tblgen -I %p %s +// RUN: llvm-tblgen -I %p %s +// XFAIL: vg_leak def BeforeInclude; include "Include.inc" diff --git a/test/TableGen/IntBitInit.td b/test/TableGen/IntBitInit.td index 16ac9c8f91..83713a3332 100644 --- a/test/TableGen/IntBitInit.td +++ b/test/TableGen/IntBitInit.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak def { bit A = 1; diff --git a/test/TableGen/LazyChange.td b/test/TableGen/LazyChange.td index fa53562b8c..8145a3ff8d 100644 --- a/test/TableGen/LazyChange.td +++ b/test/TableGen/LazyChange.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep {int Y = 3} +// RUN: llvm-tblgen %s | grep {int Y = 3} // XFAIL: vg_leak class C { diff --git a/test/TableGen/LetInsideMultiClasses.td b/test/TableGen/LetInsideMultiClasses.td index 9238bf42d9..cb13508e51 100644 --- a/test/TableGen/LetInsideMultiClasses.td +++ b/test/TableGen/LetInsideMultiClasses.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep "bit IsDouble = 1;" | count 3 +// RUN: llvm-tblgen %s | grep "bit IsDouble = 1;" | count 3 // XFAIL: vg_leak class Instruction<bits<4> opc, string Name> { diff --git a/test/TableGen/ListArgs.td b/test/TableGen/ListArgs.td index a513db6da3..8714112d13 100644 --- a/test/TableGen/ListArgs.td +++ b/test/TableGen/ListArgs.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak class B<list<int> v> { diff --git a/test/TableGen/ListArgsSimple.td b/test/TableGen/ListArgsSimple.td index f7caed69a9..b8ec6e0241 100644 --- a/test/TableGen/ListArgsSimple.td +++ b/test/TableGen/ListArgsSimple.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak class B<int v> { diff --git a/test/TableGen/ListConversion.td b/test/TableGen/ListConversion.td index 222b614056..29b87795be 100644 --- a/test/TableGen/ListConversion.td +++ b/test/TableGen/ListConversion.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak class A; class B : A; diff --git a/test/TableGen/ListManip.td b/test/TableGen/ListManip.td index 6b1e491cd2..bece266acb 100644 --- a/test/TableGen/ListManip.td +++ b/test/TableGen/ListManip.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak class Bli<string _t> diff --git a/test/TableGen/ListOfList.td b/test/TableGen/ListOfList.td new file mode 100644 index 0000000000..565a99cf5f --- /dev/null +++ b/test/TableGen/ListOfList.td @@ -0,0 +1,14 @@ +// RUN llvm-tblgen %s | FileCheck %s + +// RUN: llvm-tblgen %s | grep {foo} | count 1 +// XFAIL: vg_leak + +class Base<string t> { + string text = t; +} + +class Derived<list<list<string>> thetext> : Base<thetext[0][0]>; + +def FOO : Derived<[["foo"]]>; + +// CHECK: text = "foo" diff --git a/test/TableGen/ListSlices.td b/test/TableGen/ListSlices.td index 5848a4e487..cbb2326a95 100644 --- a/test/TableGen/ListSlices.td +++ b/test/TableGen/ListSlices.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak def A { diff --git a/test/TableGen/LoLoL.td b/test/TableGen/LoLoL.td new file mode 100644 index 0000000000..778c9609d1 --- /dev/null +++ b/test/TableGen/LoLoL.td @@ -0,0 +1,18 @@ +// RUN: llvm-tblgen %s | FileCheck %s +// XFAIL: vg_leak + +class Base<list<int> v> { + list<int> values = v; +} + +class Derived<list<int> v> : Base<!if(!empty(v),[0],v)>; + +multiclass Multi<list<list<list<int>>> v> { + def ONE : Derived<!if(!empty(v),[]<int>,!if(!empty(!head(v)),[]<int>,v[0][0]))>; + def TWO : Derived<!if(!empty(v),[]<int>,!if(!empty(!tail(v)),!if(!empty(!head(v)),[]<int>,v[0][0]),v[1][0]))>; +} + +defm Def : Multi<[[[]],[[1, 2, 3]]]>; + +// CHECK: values = [0] +// CHECK: values = [1, 2, 3] diff --git a/test/TableGen/MultiClass.td b/test/TableGen/MultiClass.td index 9f92b73dba..04f3a56558 100644 --- a/test/TableGen/MultiClass.td +++ b/test/TableGen/MultiClass.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep {zing = 4} | count 2 +// RUN: llvm-tblgen %s | grep {zing = 4} | count 2 // XFAIL: vg_leak class C1<int A, string B> { diff --git a/test/TableGen/MultiClassDefName.td b/test/TableGen/MultiClassDefName.td index 138c93d9bb..296e30c7c7 100644 --- a/test/TableGen/MultiClassDefName.td +++ b/test/TableGen/MultiClassDefName.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep WorldHelloCC | count 1 +// RUN: llvm-tblgen %s | grep WorldHelloCC | count 1 // XFAIL: vg_leak class C<string n> { diff --git a/test/TableGen/MultiClassInherit.td b/test/TableGen/MultiClassInherit.td index 9da80bad2d..8b78bc7736 100644 --- a/test/TableGen/MultiClassInherit.td +++ b/test/TableGen/MultiClassInherit.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep {zing = 4} | count 28 +// RUN: llvm-tblgen %s | grep {zing = 4} | count 28 // XFAIL: vg_leak class C1<int A, string B> { diff --git a/test/TableGen/MultiPat.td b/test/TableGen/MultiPat.td new file mode 100644 index 0000000000..b3792777b6 --- /dev/null +++ b/test/TableGen/MultiPat.td @@ -0,0 +1,121 @@ +// RUN: llvm-tblgen %s | FileCheck %s +// XFAIL: vg_leak + +class ValueType<int size, int value> { + int Size = size; + int Value = value; +} + +def v2i64 : ValueType<128, 22>; // 2 x i64 vector value +def v2f64 : ValueType<128, 28>; // 2 x f64 vector value + +class Intrinsic<string name> { + string Name = name; +} + +class Pattern<dag patternToMatch, list<dag> resultInstrs> { + dag PatternToMatch = patternToMatch; + list<dag> ResultInstrs = resultInstrs; +} + +// Pat - A simple (but common) form of a pattern, which produces a simple result +// not needing a full list. +class Pat<dag pattern, dag result> : Pattern<pattern, [result]>; + +class Inst<bits<8> opcode, dag oopnds, dag iopnds, string asmstr, + list<dag> pattern> { + bits<8> Opcode = opcode; + dag OutOperands = oopnds; + dag InOperands = iopnds; + string AssemblyString = asmstr; + list<dag> Pattern = pattern; +} + +def ops; +def outs; +def ins; + +def set; + +// Define registers +class Register<string n> { + string Name = n; +} + +class RegisterClass<list<ValueType> regTypes, list<Register> regList> { + list<ValueType> RegTypes = regTypes; + list<Register> MemberList = regList; +} + +def XMM0: Register<"xmm0">; +def XMM1: Register<"xmm1">; +def XMM2: Register<"xmm2">; +def XMM3: Register<"xmm3">; +def XMM4: Register<"xmm4">; +def XMM5: Register<"xmm5">; +def XMM6: Register<"xmm6">; +def XMM7: Register<"xmm7">; +def XMM8: Register<"xmm8">; +def XMM9: Register<"xmm9">; +def XMM10: Register<"xmm10">; +def XMM11: Register<"xmm11">; +def XMM12: Register<"xmm12">; +def XMM13: Register<"xmm13">; +def XMM14: Register<"xmm14">; +def XMM15: Register<"xmm15">; + +def VR128 : RegisterClass<[v2i64, v2f64], + [XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7, + XMM8, XMM9, XMM10, XMM11, + XMM12, XMM13, XMM14, XMM15]>; + +// Dummy for subst +def REGCLASS : RegisterClass<[], []>; +def MNEMONIC; + +class decls { + // Dummy for foreach + dag pattern; + int operand; +} + +def Decls : decls; + +// Define intrinsics +def int_x86_sse2_add_ps : Intrinsic<"addps">; +def int_x86_sse2_add_pd : Intrinsic<"addpd">; +def INTRINSIC : Intrinsic<"Dummy">; +def bitconvert; + +class MakePat<list<dag> patterns> : Pat<patterns[0], patterns[1]>; + +class Base<bits<8> opcode, dag opnds, dag iopnds, string asmstr, Intrinsic intr, + list<list<dag>> patterns> + : Inst<opcode, opnds, iopnds, asmstr, + !foreach(Decls.pattern, patterns[0], + !foreach(Decls.operand, Decls.pattern, + !subst(INTRINSIC, intr, + !subst(REGCLASS, VR128, + !subst(MNEMONIC, set, Decls.operand)))))>, + MakePat<!foreach(Decls.pattern, patterns[1], + !foreach(Decls.operand, Decls.pattern, + !subst(INTRINSIC, intr, + !subst(REGCLASS, VR128, + !subst(MNEMONIC, set, Decls.operand)))))>; + +multiclass arith<bits<8> opcode, string asmstr, string intr, list<list<dag>> patterns> { + def PS : Base<opcode, (outs VR128:$dst), (ins VR128:$src1, VR128:$src2), + !strconcat(asmstr, "\t$dst, $src1, $src2"), !cast<Intrinsic>(!subst("SUFFIX", "_ps", intr)), patterns>; + + def PD : Base<opcode, (outs VR128:$dst), (ins VR128:$src1, VR128:$src2), + !strconcat(asmstr, "\t$dst, $src1, $src2"), !cast<Intrinsic>(!subst("SUFFIX", "_pd", intr)), patterns>; +} + +defm ADD : arith<0x58, "add", "int_x86_sse2_addSUFFIX", + // rr Patterns + [[(set REGCLASS:$dst, (INTRINSIC REGCLASS:$src1, REGCLASS:$src2))], + [(set REGCLASS:$dst, (bitconvert (INTRINSIC REGCLASS:$src1, REGCLASS:$src2))), + (MNEMONIC REGCLASS:$dst, REGCLASS:$src)]]>; + +// CHECK: [(set VR128:$dst, (int_x86_sse2_add_pd VR128:$src1, VR128:$src2))] +// CHECK: [(set VR128:$dst, (int_x86_sse2_add_ps VR128:$src1, VR128:$src2))] diff --git a/test/TableGen/Paste.td b/test/TableGen/Paste.td new file mode 100644 index 0000000000..33d61ccde1 --- /dev/null +++ b/test/TableGen/Paste.td @@ -0,0 +1,35 @@ +// RUN: llvm-tblgen %s | FileCheck %s + +class Instr<int i> { + int index = i; +} + +multiclass Test { + def Vx#NAME#PS : Instr<0>; + def Vx#NAME#PD : Instr<1>; + def Vy#NAME#PS : Instr<2>; + def Vy#NAME#PD : Instr<3>; +} + +defm ADD : Test; +defm SUB : Test; + +// CHECK: VxADDPD +// CHECK: index = 1; +// CHECK: VxADDPS +// CHECK: index = 0; + +// CHECK: VxSUBPD +// CHECK: index = 1; +// CHECK: VxSUBPS +// CHECK: index = 0; + +// CHECK: VyADDPD +// CHECK: index = 3; +// CHECK: VyADDPS +// CHECK: index = 2; + +// CHECK: VySUBPD +// CHECK: index = 3; +// CHECK: VySUBPS +// CHECK: index = 2; diff --git a/test/TableGen/SetTheory.td b/test/TableGen/SetTheory.td index e0abc631e0..a4acea907d 100644 --- a/test/TableGen/SetTheory.td +++ b/test/TableGen/SetTheory.td @@ -1,5 +1,5 @@ // Test evaluation of set operations in dags. -// RUN: tblgen -print-sets %s | FileCheck %s +// RUN: llvm-tblgen -print-sets %s | FileCheck %s // XFAIL: vg_leak // // The -print-sets driver configures a primitive SetTheory instance that diff --git a/test/TableGen/Slice.td b/test/TableGen/Slice.td index 13d9da2b9f..2d2822c53b 100644 --- a/test/TableGen/Slice.td +++ b/test/TableGen/Slice.td @@ -1,5 +1,5 @@ -// RUN: tblgen %s | grep {\\\[(set} | count 2 -// RUN: tblgen %s | grep {\\\[\\\]} | count 2 +// RUN: llvm-tblgen %s | grep {\\\[(set} | count 2 +// RUN: llvm-tblgen %s | grep {\\\[\\\]} | count 2 // XFAIL: vg_leak class ValueType<int size, int value> { diff --git a/test/TableGen/String.td b/test/TableGen/String.td index fc0f5b8eb5..c71ed50f98 100644 --- a/test/TableGen/String.td +++ b/test/TableGen/String.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak class x { string y = "missing terminating '\"' character"; diff --git a/test/TableGen/SuperSubclassSameName.td b/test/TableGen/SuperSubclassSameName.td index 304c883417..643b380ca0 100644 --- a/test/TableGen/SuperSubclassSameName.td +++ b/test/TableGen/SuperSubclassSameName.td @@ -1,4 +1,4 @@ -// RUN: tblgen < %s +// RUN: llvm-tblgen < %s // XFAIL: vg_leak // Test for template arguments that have the same name as superclass template // arguments. diff --git a/test/TableGen/TargetInstrInfo.td b/test/TableGen/TargetInstrInfo.td index 6c39d5ce57..e6c563b06a 100644 --- a/test/TableGen/TargetInstrInfo.td +++ b/test/TableGen/TargetInstrInfo.td @@ -1,6 +1,6 @@ // This test describes how we eventually want to describe instructions in // the target independent code generators. -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak // Target indep stuff. diff --git a/test/TableGen/TargetInstrSpec.td b/test/TableGen/TargetInstrSpec.td index a7ca9022f8..7b611e7c17 100644 --- a/test/TableGen/TargetInstrSpec.td +++ b/test/TableGen/TargetInstrSpec.td @@ -1,5 +1,5 @@ -// RUN: tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_pd VR128:\$src1, VR128:\$src2))\\\]} | count 1 -// RUN: tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_ps VR128:\$src1, VR128:\$src2))\\\]} | count 1 +// RUN: llvm-tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_pd VR128:\$src1, VR128:\$src2))\\\]} | count 1 +// RUN: llvm-tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_ps VR128:\$src1, VR128:\$src2))\\\]} | count 1 // XFAIL: vg_leak class ValueType<int size, int value> { diff --git a/test/TableGen/TemplateArgRename.td b/test/TableGen/TemplateArgRename.td index ee5d2cf775..654b86dc03 100644 --- a/test/TableGen/TemplateArgRename.td +++ b/test/TableGen/TemplateArgRename.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak // Make sure there is no collision between XX and XX. diff --git a/test/TableGen/Tree.td b/test/TableGen/Tree.td index 2796cfd358..5190b96fcc 100644 --- a/test/TableGen/Tree.td +++ b/test/TableGen/Tree.td @@ -1,5 +1,5 @@ // This tests to make sure we can parse tree patterns. -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak class TreeNode; diff --git a/test/TableGen/TreeNames.td b/test/TableGen/TreeNames.td index ccdeb88dd0..b224e909f8 100644 --- a/test/TableGen/TreeNames.td +++ b/test/TableGen/TreeNames.td @@ -1,5 +1,5 @@ // This tests to make sure we can parse tree patterns with names. -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak class TreeNode; diff --git a/test/TableGen/UnsetBitInit.td b/test/TableGen/UnsetBitInit.td index ff7010868b..d232293d78 100644 --- a/test/TableGen/UnsetBitInit.td +++ b/test/TableGen/UnsetBitInit.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s +// RUN: llvm-tblgen %s // XFAIL: vg_leak class x { field bits<32> A; diff --git a/test/TableGen/UnterminatedComment.td b/test/TableGen/UnterminatedComment.td index 158cede260..f92525a991 100644 --- a/test/TableGen/UnterminatedComment.td +++ b/test/TableGen/UnterminatedComment.td @@ -1,4 +1,4 @@ -// RUN: not tblgen < %s >& /dev/null +// RUN: not llvm-tblgen < %s >& /dev/null def x; diff --git a/test/TableGen/cast.td b/test/TableGen/cast.td index 8164e74eae..8a23eb4cc9 100644 --- a/test/TableGen/cast.td +++ b/test/TableGen/cast.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep {add_ps} | count 3 +// RUN: llvm-tblgen %s | grep {add_ps} | count 3 // XFAIL: vg_leak class ValueType<int size, int value> { diff --git a/test/TableGen/defmclass.td b/test/TableGen/defmclass.td index 57972b6dae..80f03b3194 100644 --- a/test/TableGen/defmclass.td +++ b/test/TableGen/defmclass.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | FileCheck %s +// RUN: llvm-tblgen %s | FileCheck %s // XFAIL: vg_leak class XD { bits<4> Prefix = 11; } diff --git a/test/TableGen/eq.td b/test/TableGen/eq.td index 518a80ac0d..f8daf880b9 100644 --- a/test/TableGen/eq.td +++ b/test/TableGen/eq.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | FileCheck %s +// RUN: llvm-tblgen %s | FileCheck %s // XFAIL: vg_leak // CHECK: Value = 0 // CHECK: Value = 1 diff --git a/test/TableGen/eqbit.td b/test/TableGen/eqbit.td index 3953252c41..1d58fa0c19 100644 --- a/test/TableGen/eqbit.td +++ b/test/TableGen/eqbit.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | FileCheck %s +// RUN: llvm-tblgen %s | FileCheck %s // XFAIL: vg_leak // CHECK: a = 6 // CHECK: a = 5 diff --git a/test/TableGen/foreach.td b/test/TableGen/foreach.td index d4d81f829e..814ae6ef93 100644 --- a/test/TableGen/foreach.td +++ b/test/TableGen/foreach.td @@ -1,6 +1,6 @@ -// RUN: tblgen %s | grep {Jr} | count 2 -// RUN: tblgen %s | grep {Sr} | count 2 -// RUN: tblgen %s | grep {NAME} | count 1 +// RUN: llvm-tblgen %s | grep {Jr} | count 2 +// RUN: llvm-tblgen %s | grep {Sr} | count 2 +// RUN: llvm-tblgen %s | grep {"NAME"} | count 1 // XFAIL: vg_leak // Variables for foreach diff --git a/test/TableGen/if.td b/test/TableGen/if.td index c4d953ea22..18de368af9 100644 --- a/test/TableGen/if.td +++ b/test/TableGen/if.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | FileCheck %s +// RUN: llvm-tblgen %s | FileCheck %s // XFAIL: vg_leak // Support for an `!if' operator as part of a `let' statement. diff --git a/test/TableGen/ifbit.td b/test/TableGen/ifbit.td index 3b0349e19b..88f575e9ac 100644 --- a/test/TableGen/ifbit.td +++ b/test/TableGen/ifbit.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | FileCheck %s +// RUN: llvm-tblgen %s | FileCheck %s // XFAIL: vg_leak // CHECK: a = 6 // CHECK: a = 5 diff --git a/test/TableGen/lisp.td b/test/TableGen/lisp.td index bbed8690dd..025aca961c 100644 --- a/test/TableGen/lisp.td +++ b/test/TableGen/lisp.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep {} +// RUN: llvm-tblgen %s | grep {} // XFAIL: vg_leak class List<list<string> n> { diff --git a/test/TableGen/nested-comment.td b/test/TableGen/nested-comment.td index 68e29581bc..bf030e77a4 100644 --- a/test/TableGen/nested-comment.td +++ b/test/TableGen/nested-comment.td @@ -1,4 +1,5 @@ -// RUN: tblgen < %s +// RUN: llvm-tblgen < %s +// XFAIL: vg_leak /* foo diff --git a/test/TableGen/strconcat.td b/test/TableGen/strconcat.td index 38409a99dc..85ee831b4d 100644 --- a/test/TableGen/strconcat.td +++ b/test/TableGen/strconcat.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | grep fufoo +// RUN: llvm-tblgen %s | grep fufoo // XFAIL: vg_leak class Y<string S> { diff --git a/test/TableGen/subst.td b/test/TableGen/subst.td index 05d424f683..5a73ec4f12 100644 --- a/test/TableGen/subst.td +++ b/test/TableGen/subst.td @@ -1,9 +1,9 @@ -// RUN: tblgen %s | grep {Smith} | count 7 -// RUN: tblgen %s | grep {Johnson} | count 2 -// RUN: tblgen %s | grep {FIRST} | count 1 -// RUN: tblgen %s | grep {LAST} | count 1 -// RUN: tblgen %s | grep {TVAR} | count 2 -// RUN: tblgen %s | grep {Bogus} | count 1 +// RUN: llvm-tblgen %s | grep {Smith} | count 7 +// RUN: llvm-tblgen %s | grep {Johnson} | count 2 +// RUN: llvm-tblgen %s | grep {FIRST} | count 1 +// RUN: llvm-tblgen %s | grep {LAST} | count 1 +// RUN: llvm-tblgen %s | grep {TVAR} | count 2 +// RUN: llvm-tblgen %s | grep {Bogus} | count 1 // XFAIL: vg_leak class Honorific<string t> { diff --git a/test/TableGen/subst2.td b/test/TableGen/subst2.td index 584266ef23..7c007f7db1 100644 --- a/test/TableGen/subst2.td +++ b/test/TableGen/subst2.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | FileCheck %s +// RUN: llvm-tblgen %s | FileCheck %s // XFAIL: vg_leak // CHECK: No subst // CHECK: No foo diff --git a/test/TableGen/usevalname.td b/test/TableGen/usevalname.td index 1b31c8f150..d85b98ac33 100644 --- a/test/TableGen/usevalname.td +++ b/test/TableGen/usevalname.td @@ -1,4 +1,4 @@ -// RUN: tblgen %s | FileCheck %s +// RUN: llvm-tblgen %s | FileCheck %s // XFAIL: vg_leak class Instr<list<dag> pat> { |