1 // RUN: llvm-tblgen %s | FileCheck %s
4 // CHECK-LABEL: def FALSE {
5 // CHECK: int Value = 0;
8 // CHECK-LABEL: def TRUE {
9 // CHECK: int Value = 1;
12 // CHECK-LABEL: def X_NE {
21 class Derived<string Truth> :
22 Base<!if(!eq(Truth, "true"), 1, 0)>;
24 def TRUE : Derived<"true">;
25 def FALSE : Derived<"false">;
28 bit a = !ne("true", "false");
29 bit b = !ne("foo", "foo");