| Dan Gohman | 11a4008 | 2007-07-02 15:43:20 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -enable-unsafe-fp-math -march=x86-64 | \ |
| 2 | ; RUN: not egrep {addsd|subsd|xor} | ||||
| 3 | |||||
| 4 | declare double @sin(double %f) | ||||
| 5 | |||||
| 6 | define double @foo(double %e) | ||||
| 7 | { | ||||
| 8 | %f = sub double 0.0, %e | ||||
| 9 | %g = call double @sin(double %f) | ||||
| 10 | %h = sub double 0.0, %g | ||||
| 11 | ret double %h | ||||
| 12 | } | ||||