summaryrefslogtreecommitdiff
path: root/test/TableGen
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-01-25 22:11:46 +0000
committerReid Kleckner <reid@kleckner.net>2013-01-25 22:11:46 +0000
commitce98f09f539b09c2565bc6f7608e430fd190a1cc (patch)
tree19414ed0944526082709a0cf6ac119f3e081bc37 /test/TableGen
parent6bbf4ff9c545c881422da37494b1ccb9c18d9c6a (diff)
downloadllvm-ce98f09f539b09c2565bc6f7608e430fd190a1cc.tar.gz
llvm-ce98f09f539b09c2565bc6f7608e430fd190a1cc.tar.bz2
llvm-ce98f09f539b09c2565bc6f7608e430fd190a1cc.tar.xz
FileCheck-ify some grep tests
These tests in particular try to use escaped square brackets as an argument to grep, which is failing for me with native win32 python. It appears the backslash is being lost near the CreateProcess*() call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r--test/TableGen/Slice.td8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/TableGen/Slice.td b/test/TableGen/Slice.td
index cec9fb65ca..7a35d315c5 100644
--- a/test/TableGen/Slice.td
+++ b/test/TableGen/Slice.td
@@ -1,5 +1,4 @@
-// RUN: llvm-tblgen %s | grep "\[(set" | count 2
-// RUN: llvm-tblgen %s | grep "\[\]" | count 2
+// RUN: llvm-tblgen %s | FileCheck %s
class ValueType<int size, int value> {
int Size = size;
@@ -85,3 +84,8 @@ multiclass myscalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns
vscalar<opcode, asmstr, patterns>;
defm NOT : myscalar<0x10, "not", [[], [(set FR32:$dst, (f32 (not FR32:$src)))]]>;
+
+// CHECK: Pattern = [(set FR32:$dst, (f32 (not FR32:$src)))];
+// CHECK: Pattern = [];
+// CHECK: Pattern = [(set FR32:$dst, (f32 (not FR32:$src)))];
+// CHECK: Pattern = [];