Skip to content

Commit

Permalink
test: Update test for choose expr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko committed Sep 4, 2024
1 parent 89a8f9b commit 4221109
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/vast/Dialect/HighLevel/choose-expr-a.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@

void fn() {
int x, y;
// CHECK: hl.choose_expr : !hl.lvalue<!hl.int> {
// CHECK: hl.choose_expr cond false : !hl.lvalue<!hl.int> {
// CHECK: hl.cond.yield {{%.*}} : !hl.int
// CHECK: hl.value.yield {{%.*}} : !hl.lvalue<!hl.int>
// CHECK: hl.value.yield {{%.*}} : !hl.lvalue<!hl.int>
int z = __builtin_choose_expr(0, x, y);
// CHECK: hl.choose_expr cond true : !hl.lvalue<!hl.int> {
int w = __builtin_choose_expr(1, x, y);
}

0 comments on commit 4221109

Please sign in to comment.