Matt Arsenault | a7bc7db | 2015-07-31 01:12:06 +0000 | [diff] [blame^] | 1 | // RUN: llvm-tblgen %s | FileCheck %s |
2 | |||||
3 | class 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 | |||||
10 | def : Foo<{1, 0, 1, 0, 1, 0, 1, 0}>; |