aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll
blob: 36afb24ff3699ee0ae0d18c33dd3fe07b47e2936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llvm-upgrade < %s | llvm-as | opt -dse -scalarrepl -instcombine | \
; RUN:   llvm-dis | not grep {ret int undef}

int %test(double %__x) {
	%__u = alloca { [3 x int] }
	%tmp.1 = cast { [3 x int] }* %__u to double*
	store double %__x, double* %tmp.1
	%tmp.4 = getelementptr { [3 x int] }* %__u, int 0, uint 0, int 1
	%tmp.5 = load int* %tmp.4
	%tmp.6 = setlt int %tmp.5, 0
	%tmp.7 = cast bool %tmp.6 to int
	ret int %tmp.7
}