This implements the second half of the fix for PR3290, handling
[oota-llvm.git] / test / Transforms / InstCombine / 2008-07-16-fsub.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep sub
2 ; PR2553
3
4 define double @test(double %X) nounwind {
5         ; fsub of self can't be optimized away.
6         %Y = sub double %X, %X
7         ret double %Y
8 }