summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-01-25 20:29:25 +0000
committerHal Finkel <hfinkel@anl.gov>2013-01-25 20:29:25 +0000
commit1a57ba57a23405bcc27b048e051c675d7897708b (patch)
treec5e1c79d0f014d23509dafb213a29cebde6fbc68
parent7a94daa170b9ff830e2e3a43e21ee1c523471d9b (diff)
downloadbcm5719-llvm-1a57ba57a23405bcc27b048e051c675d7897708b.tar.gz
bcm5719-llvm-1a57ba57a23405bcc27b048e051c675d7897708b.zip
Improve the !add TableGen test case.
Suggested by Sean Silva. llvm-svn: 173481
-rw-r--r--llvm/test/TableGen/math.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/TableGen/math.td b/llvm/test/TableGen/math.td
index 1f3a500f089..bde267a652d 100644
--- a/llvm/test/TableGen/math.td
+++ b/llvm/test/TableGen/math.td
@@ -5,11 +5,14 @@ class Int<int value> {
}
def v1024 : Int<1024>;
+// CHECK: def v1024
// CHECK: Value = 1024
def v1025 : Int<!add(v1024.Value, 1)>;
+// CHECK: def v1025
// CHECK: Value = 1025
def v2048 : Int<!add(v1024.Value, v1024.Value)>;
+// CHECK: def v2048
// CHECK: Value = 2048
OpenPOWER on IntegriCloud