blob: a99bccf5a65413a811a9c6414b37d3c27895d0e3 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mattr=+vfp2
Evan Cheng755e98b2007-04-04 00:15:17 +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}