blob: 8cc1bec2d1f9991f513e4a5caa8a4a79af0d1126 [file] [log] [blame]
Dan Gohman03de31a2007-07-02 15:43:20 +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 Gohmanae3a0be2009-06-04 22:49:04 +00008 %f = fsub double 0.0, %e
Dan Gohman03de31a2007-07-02 15:43:20 +00009 %g = call double @sin(double %f)
Dan Gohmanae3a0be2009-06-04 22:49:04 +000010 %h = fsub double 0.0, %g
Dan Gohman03de31a2007-07-02 15:43:20 +000011 ret double %h
12}