diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-01-25 20:29:25 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-01-25 20:29:25 +0000 |
commit | 4f070b0fe0a8c07137789d8cb5b2c087b62ad1f5 (patch) | |
tree | 07e7dfed150ff824a46e32ff78a8d4fce44dd4c7 /test/TableGen | |
parent | 939a4e8b693820d161f362317f7dba9057e66cc7 (diff) |
Improve the !add TableGen test case.
Suggested by Sean Silva.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r-- | test/TableGen/math.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/TableGen/math.td b/test/TableGen/math.td index 1f3a500f08..bde267a652 100644 --- a/test/TableGen/math.td +++ b/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 |