aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/builtin_unreachable0.c
blob: 911ed7f97f950c39cdc9ec554c7bf58bd9fc569f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
int foo(int p)
{
	if (p == 3)
		__builtin_unreachable();
	return p;
}

/*
 * check-name: builtin_unreachable0
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-start
foo:
.L0:
	<entry-point>
	seteq.32    %r2 <- %arg1, $3
	cbr         %r2, .L1, .L3

.L1:
	unreachable

.L3:
	ret.32      %arg1


 * check-output-end
 */