blob: a99bccf5a65413a811a9c6414b37d3c27895d0e3 [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mattr=+vfp2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3define double @__ieee754_sqrt(double %x) {
4 %tmp2 = tail call double asm "fsqrtd ${0:P}, ${1:P}", "=w,w"( double %x )
5 ret double %tmp2
6}
7
8define float @__ieee754_sqrtf(float %x) {
9 %tmp2 = tail call float asm "fsqrts $0, $1", "=w,w"( float %x )
10 ret float %tmp2
11}