mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 00:43:48 +00:00
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
This commit is contained in:
parent
939a4e8b69
commit
4f070b0fe0
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user