2008-07-17 06:07:20 +00:00
|
|
|
; 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.
|
2009-06-04 22:49:04 +00:00
|
|
|
%Y = fsub double %X, %X
|
2008-07-17 06:07:20 +00:00
|
|
|
ret double %Y
|
|
|
|
}
|