// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// llvm.sqrt has undefined behavior on negative inputs, so it is
// inappropriate to translate C/C++ sqrt to this.
float sqrtf(float x);
float foo(float X) {
  // CHECK: foo
  // CHECK: call float @sqrtf(float %tmp) readnone
  // Check that this is marked readonly when errno is ignored.
  return sqrtf(X);
}

// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// llvm.sqrt has undefined behavior on negative inputs, so it is
// inappropriate to translate C/C++ sqrt to this.
float sqrtf(float x);
float foo(float X) {
  // CHECK: foo
  // CHECK: call float @sqrtf(float %
  // Check that this is marked readonly when errno is ignored.
  return sqrtf(X);
}

Adjust check for release mode.
Adjust check for release mode.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136158 91177308-0d34-0410-b5e6-96231b3b80d8
