Pull out this predicate loop into a helper function.
[oota-llvm.git] / test / FrontendC / 2005-07-20-SqrtNoErrno.c
1 // RUN: %llvmgcc %s -S -o - -fno-math-errno | grep llvm.sqrt
2 #include <math.h>
3
4 float foo(float X) {
5   // Check that this compiles to llvm.sqrt when errno is ignored.
6   return sqrtf(X);
7 }