blob: 8cc1bec2d1f9991f513e4a5caa8a4a79af0d1126 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -enable-unsafe-fp-math -march=x86-64 | \
2; RUN: not egrep {addsd|subsd|xor}
3
4declare double @sin(double %f)
5
6define double @foo(double %e)
7{
Dan Gohman7ce405e2009-06-04 22:49:04 +00008 %f = fsub double 0.0, %e
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009 %g = call double @sin(double %f)
Dan Gohman7ce405e2009-06-04 22:49:04 +000010 %h = fsub double 0.0, %g
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011 ret double %h
12}