llvm.org GIT mirror llvm / 5d5c062
s/tblgen/llvm-tblgen/g in a few missed places, including the tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141294 91177308-0d34-0410-b5e6-96231b3b80d8 Peter Collingbourne 7 years ago
54 changed file(s) with 65 addition(s) and 65 deletion(s). Raw diff Collapse all Expand all
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22
33 class test {
None // RUN: tblgen %s | grep -- 4294901760
0 // RUN: llvm-tblgen %s | grep -- 4294901760
11 // XFAIL: vg_leak
22
33 def X {
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11 // XFAIL: vg_leak
22
33 class A x = 1> {
None // RUN: tblgen < %s
0 // RUN: llvm-tblgen < %s
11 // XFAIL: vg_leak
22
33 class foo { int THEVAL = X; }
None // RUN: not tblgen %s 2> /dev/null
0 // RUN: not llvm-tblgen %s 2> /dev/null
11
22 def {
33 bits<2> X = 5; // bitfield is too small, reject
0 // Test that multiline, nested, comments work correctly.
11 //
2 // RUN: tblgen < %s
2 // RUN: llvm-tblgen < %s
33 // XFAIL: vg_leak
44
55 /* Foo
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11 // XFAIL: vg_leak
22
33 //===----------------------------------------------------------------------===//
None // RUN: tblgen %s | grep {zing = 4} | count 4
0 // RUN: llvm-tblgen %s | grep {zing = 4} | count 4
11 // XFAIL: vg_leak
22
33 class C1 {
None // RUN: tblgen %s | grep ADDPSrr | count 1
0 // RUN: llvm-tblgen %s | grep ADDPSrr | count 1
11 // XFAIL: vg_leak
22
33 class Instruction opc, string Name> {
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22
33 class Bla
None // RUN: tblgen %s -o -
0 // RUN: llvm-tblgen %s -o -
11 // XFAIL: vg_leak
22
33 class bar {
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22 //
33 // Test to make sure that lists work with any data-type
None // RUN: tblgen -I %p %s
0 // RUN: llvm-tblgen -I %p %s
11 // XFAIL: vg_leak
22 def BeforeInclude;
33
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22 def {
33 bit A = 1;
None // RUN: tblgen %s | grep {int Y = 3}
0 // RUN: llvm-tblgen %s | grep {int Y = 3}
11 // XFAIL: vg_leak
22
33 class C {
None // RUN: tblgen %s | grep "bit IsDouble = 1;" | count 3
0 // RUN: llvm-tblgen %s | grep "bit IsDouble = 1;" | count 3
11 // XFAIL: vg_leak
22
33 class Instruction opc, string Name> {
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22
33 class B v> {
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22
33 class B {
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22 class A;
33 class B : A;
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22
33 class Bli
None // RUN tblgen %s | FileCheck %s
0 // RUN llvm-tblgen %s | FileCheck %s
11
2 // RUN: tblgen %s | grep {foo} | count 1
2 // RUN: llvm-tblgen %s | grep {foo} | count 1
33
44 class Base {
55 string text = t;
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22
33 def A {
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11
22 class Base v> {
33 list values = v;
None // RUN: tblgen %s | grep {zing = 4} | count 2
0 // RUN: llvm-tblgen %s | grep {zing = 4} | count 2
11 // XFAIL: vg_leak
22
33 class C1 {
None // RUN: tblgen %s | grep WorldHelloCC | count 1
0 // RUN: llvm-tblgen %s | grep WorldHelloCC | count 1
11 // XFAIL: vg_leak
22
33 class C {
None // RUN: tblgen %s | grep {zing = 4} | count 28
0 // RUN: llvm-tblgen %s | grep {zing = 4} | count 28
11 // XFAIL: vg_leak
22
33 class C1 {
None // RUN: tblgen %s | FileCheck %s
1 // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
1 // RUN: llvm-tblgen %s | FileCheck %s
22
33 class Base {
44 int value = i;
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11
22 class ValueType {
33 int Size = size;
0 // Test evaluation of set operations in dags.
1 // RUN: tblgen -print-sets %s | FileCheck %s
1 // RUN: llvm-tblgen -print-sets %s | FileCheck %s
22 // XFAIL: vg_leak
33 //
44 // The -print-sets driver configures a primitive SetTheory instance that
None // RUN: tblgen %s | grep {\\\[(set} | count 2
1 // RUN: tblgen %s | grep {\\\[\\\]} | count 2
0 // RUN: llvm-tblgen %s | grep {\\\[(set} | count 2
1 // RUN: llvm-tblgen %s | grep {\\\[\\\]} | count 2
22 // XFAIL: vg_leak
33
44 class ValueType {
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22 class x {
33 string y = "missing terminating '\"' character";
None // RUN: tblgen < %s
0 // RUN: llvm-tblgen < %s
11 // XFAIL: vg_leak
22 // Test for template arguments that have the same name as superclass template
33 // arguments.
0 // This test describes how we eventually want to describe instructions in
11 // the target independent code generators.
2 // RUN: tblgen %s
2 // RUN: llvm-tblgen %s
33 // XFAIL: vg_leak
44
55 // Target indep stuff.
None // RUN: tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_pd VR128:\$src1, VR128:\$src2))\\\]} | count 1
1 // RUN: tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_ps VR128:\$src1, VR128:\$src2))\\\]} | count 1
0 // RUN: llvm-tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_pd VR128:\$src1, VR128:\$src2))\\\]} | count 1
1 // RUN: llvm-tblgen %s | grep {\\\[(set VR128:\$dst, (int_x86_sse2_add_ps VR128:\$src1, VR128:\$src2))\\\]} | count 1
22 // XFAIL: vg_leak
33
44 class ValueType {
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22
33 // Make sure there is no collision between XX and XX.
0 // This tests to make sure we can parse tree patterns.
1 // RUN: tblgen %s
1 // RUN: llvm-tblgen %s
22 // XFAIL: vg_leak
33
44 class TreeNode;
0 // This tests to make sure we can parse tree patterns with names.
1 // RUN: tblgen %s
1 // RUN: llvm-tblgen %s
22 // XFAIL: vg_leak
33
44 class TreeNode;
None // RUN: tblgen %s
0 // RUN: llvm-tblgen %s
11 // XFAIL: vg_leak
22 class x {
33 field bits<32> A;
None // RUN: not tblgen < %s >& /dev/null
0 // RUN: not llvm-tblgen < %s >& /dev/null
11
22 def x;
33
None // RUN: tblgen %s | grep {add_ps} | count 3
0 // RUN: llvm-tblgen %s | grep {add_ps} | count 3
11 // XFAIL: vg_leak
22
33 class ValueType {
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11 // XFAIL: vg_leak
22
33 class XD { bits<4> Prefix = 11; }
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11 // XFAIL: vg_leak
22 // CHECK: Value = 0
33 // CHECK: Value = 1
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11 // XFAIL: vg_leak
22 // CHECK: a = 6
33 // CHECK: a = 5
None // RUN: tblgen %s | grep {Jr} | count 2
1 // RUN: tblgen %s | grep {Sr} | count 2
2 // RUN: tblgen %s | grep {NAME} | count 1
0 // RUN: llvm-tblgen %s | grep {Jr} | count 2
1 // RUN: llvm-tblgen %s | grep {Sr} | count 2
2 // RUN: llvm-tblgen %s | grep {NAME} | count 1
33 // XFAIL: vg_leak
44
55 // Variables for foreach
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11 // XFAIL: vg_leak
22
33 // Support for an `!if' operator as part of a `let' statement.
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11 // XFAIL: vg_leak
22 // CHECK: a = 6
33 // CHECK: a = 5
None // RUN: tblgen %s | grep {}
0 // RUN: llvm-tblgen %s | grep {}
11 // XFAIL: vg_leak
22
33 class List n> {
None // RUN: tblgen < %s
0 // RUN: llvm-tblgen < %s
11 // XFAIL: vg_leak
22
33 /* foo
None // RUN: tblgen %s | grep fufoo
0 // RUN: llvm-tblgen %s | grep fufoo
11 // XFAIL: vg_leak
22
33 class Y {
None // RUN: tblgen %s | grep {Smith} | count 7
1 // RUN: tblgen %s | grep {Johnson} | count 2
2 // RUN: tblgen %s | grep {FIRST} | count 1
3 // RUN: tblgen %s | grep {LAST} | count 1
4 // RUN: tblgen %s | grep {TVAR} | count 2
5 // RUN: tblgen %s | grep {Bogus} | count 1
0 // RUN: llvm-tblgen %s | grep {Smith} | count 7
1 // RUN: llvm-tblgen %s | grep {Johnson} | count 2
2 // RUN: llvm-tblgen %s | grep {FIRST} | count 1
3 // RUN: llvm-tblgen %s | grep {LAST} | count 1
4 // RUN: llvm-tblgen %s | grep {TVAR} | count 2
5 // RUN: llvm-tblgen %s | grep {Bogus} | count 1
66 // XFAIL: vg_leak
77
88 class Honorific {
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11 // XFAIL: vg_leak
22 // CHECK: No subst
33 // CHECK: No foo
None // RUN: tblgen %s | FileCheck %s
0 // RUN: llvm-tblgen %s | FileCheck %s
11 // XFAIL: vg_leak
22
33 class Instr pat> {
110110 regsub -all {llvm-ranlib } $new_line "$valgrind llvm-ranlib " new_line
111111 regsub -all {([^a-zA-Z_-])opt } $new_line "\\1$valgrind opt " new_line
112112 regsub -all {^opt } $new_line "$valgrind opt " new_line
113 regsub -all {tblgen } $new_line "$valgrind tblgen " new_line
113 regsub -all {llvm-tblgen } $new_line "$valgrind llvm-tblgen " new_line
114114 regsub -all "not $valgrind " $new_line "$valgrind not " new_line
115115
116116 return $new_line
197197 # Don't match '.opt', '-opt',
198198 # '^opt' or '/opt'.
199199 r"\bmacho-dump\b", r"(?
200 r"\btblgen\b", r"\bFileCheck\b",
200 r"\bllvm-tblgen\b", r"\bFileCheck\b",
201201 r"\bFileUpdate\b", r"\bc-index-test\b",
202202 r"\bfpcmp\b", r"\bllvm-PerfectShuffle\b",
203203 # Handle these specially as they are strings searched