mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
11 lines
294 B
TableGen
11 lines
294 B
TableGen
|
// RUN: llvm-tblgen %s | FileCheck %s
|
||
|
|
||
|
class Foo<bits<8> b> {
|
||
|
// CHECK: list<int> ListOfInts = [170];
|
||
|
// CHECK: list<int> AnotherList = [170, 7];
|
||
|
list<int> ListOfInts = [!cast<int>(b)];
|
||
|
list<int> AnotherList = [!cast<int>(b), !cast<int>({1, 1, 1})];
|
||
|
}
|
||
|
|
||
|
def : Foo<{1, 0, 1, 0, 1, 0, 1, 0}>;
|