summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/math.td
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/TableGen/math.td')
-rw-r--r--llvm/test/TableGen/math.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/TableGen/math.td b/llvm/test/TableGen/math.td
index 71c60579de2..d966346596a 100644
--- a/llvm/test/TableGen/math.td
+++ b/llvm/test/TableGen/math.td
@@ -15,6 +15,12 @@ class Int<int value> {
int Value = value;
}
+// CHECK: def v0
+// CHECK: Value = 0
+
+// CHECK: def v1
+// CHECK: Value = 1
+
def v1024 : Int<1024>;
// CHECK: def v1024
// CHECK: Value = 1024
@@ -27,3 +33,5 @@ def v2048 : Int<!add(v1024.Value, v1024.Value)>;
// CHECK: def v2048
// CHECK: Value = 2048
+def v0 : Int<!and(v1024.Value, v2048.Value)>;
+def v1 : Int<!and(v1025.Value, 1)>;
OpenPOWER on IntegriCloud