1 // RUN: llvm-tblgen %s | FileCheck %s
4 class XD { bits<4> Prefix = 11; }
5 // CHECK: Prefix = { 1, 1, 0, 0 };
6 class XS { bits<4> Prefix = 12; }
7 class VEX { bit hasVEX_4VPrefix = 1; }
13 bit hasVEX_4VPrefix = 0;
16 class I<bits<4> op> : BaseI {
18 int val = !if(!eq(Prefix, xd.Prefix), 7, 21);
19 int check = !if(hasVEX_4VPrefix, 0, 10);
32 // CHECK: Prefix = { 1, 1, 0, 0 };
33 // CHECK: Prefix = { 1, 1, 0, 0 };
37 // CHECK: int check = 0;
43 multiclass SomeAnonymous<int x> {
48 // These multiclasses shouldn't conflict.
49 defm : SomeAnonymous<1>;
50 defm : SomeAnonymous<2>;