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