1 // RUN: llvm-tblgen %s | FileCheck %s 2 3 class C<list<bits<8>> L> { 4 bits<2> V0 = L[0]{1-0}; 5 bits<2> V1 = L[1]{3-2}; 6 string V2 = !if(L[0]{0}, "Odd", "Even"); 7 } 8 9 def c0 : C<[0b0101, 0b1010]>; 10 11 // CHECK: def c0 12 // CHECK-NEXT: bits<2> V0 = { 0, 1 }; 13 // CHECK-NEXT: bits<2> V1 = { 1, 0 }; 14 // CHECK-NEXT: string V2 = "Odd"; 15