summaryrefslogtreecommitdiff
path: root/test/FrontendC/libcalls-ld.c
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-09-04 21:24:28 +0000
committerDale Johannesen <dalej@apple.com>2008-09-04 21:24:28 +0000
commitfe89669b772ac6aeb7b8e5b0e3c5e801e46598c7 (patch)
tree09bcbf7d8bfaeb3748d77d0247c1e5ee3b1177b2 /test/FrontendC/libcalls-ld.c
parentdb10033d7c001349e82a496e8d8042c4118a121b (diff)
downloadllvm-fe89669b772ac6aeb7b8e5b0e3c5e801e46598c7.tar.gz
llvm-fe89669b772ac6aeb7b8e5b0e3c5e801e46598c7.tar.bz2
llvm-fe89669b772ac6aeb7b8e5b0e3c5e801e46598c7.tar.xz
Adjust tests to expect new math intrinsics to be
emitted only when errno is not in use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC/libcalls-ld.c')
-rw-r--r--test/FrontendC/libcalls-ld.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/FrontendC/libcalls-ld.c b/test/FrontendC/libcalls-ld.c
index ce612e91c3..6533eb88d9 100644
--- a/test/FrontendC/libcalls-ld.c
+++ b/test/FrontendC/libcalls-ld.c
@@ -1,6 +1,8 @@
// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
// and -fno-builtins shouldn't.
-// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep {call.*exp2\\..*f}
+// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
+// RUN: %llvmgcc %s -S -fno-math-errno -emit-llvm -O0 -o - | grep {call.*exp2\\..*f}
+// RUN: %llvmgcc %s -S -fmath-errno -emit-llvm -O0 -o - | grep {call.*exp2l}
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2l}