summaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2008-07-16-fsub.ll
blob: ca4174d0a96342c7b162ad55103b636795794b49 (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 = fsub double %X, %X
	ret double %Y
}
OpenPOWER on IntegriCloud