blob: 4c83773a5a79c3757f6ff61b3ac81e9a2bb39621 [file] [log] [blame]
Matt Arsenaulta7bc7db2015-07-31 01:12:06 +00001// RUN: llvm-tblgen %s | FileCheck %s
2
3class Foo<bits<8> b> {
4// CHECK: list<int> ListOfInts = [170];
5// CHECK: list<int> AnotherList = [170, 7];
6 list<int> ListOfInts = [!cast<int>(b)];
7 list<int> AnotherList = [!cast<int>(b), !cast<int>({1, 1, 1})];
8}
9
10def : Foo<{1, 0, 1, 0, 1, 0, 1, 0}>;