aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/LICM/2003-02-28-PromoteDifferentType.ll
blob: 4f7cbeade7196b0c9ce48d5b67f5753f78ec64b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; Test that hoisting is disabled for pointers of different types...
;
; RUN: llvm-as < %s | opt -licm

void %test(int* %P) {
	br label %Loop
Loop:
	store int 5, int* %P
	%P2 = cast int* %P to sbyte*
	store sbyte 4, sbyte* %P2
	br bool true, label %Loop, label %Out
Out:
	ret void
}