blob: 7842eb8456eb4e39f0b43fa301621307d71c765b [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -enable-unsafe-fp-math -march=x86-64 | \
Dan Gohman03de31a2007-07-02 15:43:20 +00002; 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
Dale Johannesen1d737422009-09-25 18:15:29 +00009 %g = call double @sin(double %f) readonly
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}