mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
30f290dac3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82658 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
315 B
C
11 lines
315 B
C
// RUN: %llvmgcc %s -S -o - -fno-math-errno | grep llvm.sqrt
|
|
// llvm.sqrt has undefined behavior on negative inputs, so it is
|
|
// inappropriate to translate C/C++ sqrt to this.
|
|
// XFAIL: *
|
|
#include <math.h>
|
|
|
|
float foo(float X) {
|
|
// Check that this compiles to llvm.sqrt when errno is ignored.
|
|
return sqrtf(X);
|
|
}
|