aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/builtin_unreachable0.c
blob: f97030791bf8c8d99e6dca7dec370a70dc150d9a (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
28
int foo(int p)
{
	if (p == 3)
		__builtin_unreachable();
	return p;
}

/*
 * check-name: builtin_unreachable0
 * check-command: test-linearize -Wno-decl $file
 * check-known-to-fail
 *
 * 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
 */