convert to filecheck.
[oota-llvm.git] / test / FrontendC / 2005-07-20-SqrtNoErrno.c
1 // RUN: %llvmgcc %s -S -o - -fno-math-errno | FileCheck %s
2 // llvm.sqrt has undefined behavior on negative inputs, so it is
3 // inappropriate to translate C/C++ sqrt to this.
4 #include <math.h>
5
6 float foo(float X) {
7 // CHECK: foo
8 // CHECK: sqrtf(float %1) nounwind readonly
9   // Check that this is marked readonly when errno is ignored.
10   return sqrtf(X);
11 }