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

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