1 // RUN: llvm-tblgen %s | FileCheck %s
4 // Check that !cond picks the first true value
6 // CHECK-NEXT: string S = !cond(!eq(A:x, 10): "ten", !eq(A:x, 11): "eleven", !eq(A:x, 10): "TEN", !gt(A:x, 9): "MoreThanNine", 1: "unknown");
8 // CHECK-NEXT: string S = "unknown"
10 // CHECK-NEXT: string S = "ten";
12 // CHECK-NEXT: string S = "eleven";
14 // CHECK-NEXT: string S = "MoreThanNine";
16 // CHECK-NEXT: string S = "unknown"
19 string S = !cond(!eq(x,10) : "ten",
22 !gt(x,9) : "MoreThanNine",
23 !eq(1,1) : "unknown");