aboutsummaryrefslogtreecommitdiff
path: root/test/TableGen/SetTheory.td
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2012-05-24 21:37:08 +0000
committerOwen Anderson <resistor@mac.com>2012-05-24 21:37:08 +0000
commit6b31d4ea3610b04d71e1eb38d8fc625eae7b759a (patch)
tree5a8152caa3dd148168f29df834b539b98136d5bb /test/TableGen/SetTheory.td
parentd6d05e3f788d60d5c76ab99ce95ea6f622932d90 (diff)
Teach tblgen's set theory "sequence" operator to support an optional stride operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen/SetTheory.td')
-rw-r--r--test/TableGen/SetTheory.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/TableGen/SetTheory.td b/test/TableGen/SetTheory.td
index 4d85aa3e6f..761332312b 100644
--- a/test/TableGen/SetTheory.td
+++ b/test/TableGen/SetTheory.td
@@ -161,10 +161,12 @@ def S9a : Set<(sequence "e%u", 3, 7)>;
def S9b : Set<(sequence "e%u", 7, 3)>;
def S9c : Set<(sequence "e%u", 0, 0)>;
def S9d : Set<(sequence "S%ua", 7, 9)>;
+def S9e : Set<(sequence "e%u", 3, 6, 2)>;
// CHECK: S9a = [ e3 e4 e5 e6 e7 ]
// CHECK: S9b = [ e7 e6 e5 e4 e3 ]
// CHECK: S9c = [ e0 ]
// CHECK: S9d = [ a b c d e0 e3 e6 e9 e4 e5 e7 ]
+// CHECK: S9e = [ e3 e5 ]
// The 'interleave' operator is almost the inverse of 'decimate'.
def interleave;