summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2008-07-16-fsub.ll
blob: 350f97e7c448c2147befb759daa32ca4b03f19bf (plain)
1
2
3
4
5
6
7
8
; RUN: opt %s -instcombine | llvm-dis | grep sub
; PR2553

define double @test(double %X) nounwind {
	; fsub of self can't be optimized away.
	%Y = fsub double %X, %X
	ret double %Y
}