You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
294 B
11 lines
294 B
// 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}>;
|