aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
blob: 94785f318fab15dc704f335996cde3b8db9113ff (plain)
1
2
3
4
5
6
7
8
; RUN: as < %s | opt -reassociate -instcombine -constprop -dce | dis | not grep add

int %test(int %A) {
	%X = add int %A, 1
	%Y = add int %A, 1
	%r = sub int %X, %Y
	ret int %r               ; Should be equal to 0!
}