blob: 76e557b84225d0211b40d30197fc77e792fec390 [file] [log] [blame]
NAKAMURA Takumie5eff5f2010-12-29 03:58:47 +00001; RUN: llc < %s -enable-unsafe-fp-math -march=x86-64 | FileCheck %s
2; CHECK-NOT: {{addsd|subsd|xor}}
Dan Gohman03de31a2007-07-02 15:43:20 +00003
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}