diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-11-15 06:49:28 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-11-15 06:49:28 +0000 |
| commit | 1c8d933881a9990d2463c1e7772b4f4ebdb2198a (patch) | |
| tree | 1aae04528751923c6c756e1a9b5e8e2ef8f7eaed /llvm/test/TableGen/math.td | |
| parent | 76dbf26599388196d5f82a492c8d6004559983f7 (diff) | |
| download | bcm5719-llvm-1c8d933881a9990d2463c1e7772b4f4ebdb2198a.tar.gz bcm5719-llvm-1c8d933881a9990d2463c1e7772b4f4ebdb2198a.zip | |
TableGen: Add operator !or
llvm-svn: 286936
Diffstat (limited to 'llvm/test/TableGen/math.td')
| -rw-r--r-- | llvm/test/TableGen/math.td | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/TableGen/math.td b/llvm/test/TableGen/math.td index d966346596a..a8b939176e0 100644 --- a/llvm/test/TableGen/math.td +++ b/llvm/test/TableGen/math.td @@ -15,12 +15,18 @@ class Int<int value> { int Value = value; } +def v1022 : Int<1022>; + // CHECK: def v0 // CHECK: Value = 0 // CHECK: def v1 // CHECK: Value = 1 +// CHECK: def v1023 +// CHECK: Value = 1023 +def v1023 : Int<!or(v1022.Value, 1)>; + def v1024 : Int<1024>; // CHECK: def v1024 // CHECK: Value = 1024 @@ -35,3 +41,7 @@ def v2048 : Int<!add(v1024.Value, v1024.Value)>; def v0 : Int<!and(v1024.Value, v2048.Value)>; def v1 : Int<!and(v1025.Value, 1)>; + +// CHECK: def v3072 +// CHECK: Value = 3072 +def v3072 : Int<!or(v1024.Value, v2048.Value)>; |

