aboutsummaryrefslogtreecommitdiffstats
path: root/test/Verifier/PhiGrouping.ll
blob: aa1203b73a0870359e3eadddd062334fc39ea432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: not llvm-as -f %s -o /dev/null



int "test"(int %i, int %j, bool %c) {
	br bool %c, label %A, label %B
A:
	br label %C
B:
	br label %C

C:
	%a = phi int [%i, %A], [%j, %B]
	%x = add int %a, 0                 ; Error, PHI's should be grouped!
	%b = phi int [%i, %A], [%j, %B]
	ret int %x
}