summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit462a071c388464a0e69c7a21ada0fc853a4f5806 (patch)
treef5c47821dee60511c6b9ce561107ee670b06a9ce /llvm
parentb9d5e02811ab7c0ff1841e33ec0966077f2856f6 (diff)
downloadbcm5719-llvm-462a071c388464a0e69c7a21ada0fc853a4f5806.tar.gz
bcm5719-llvm-462a071c388464a0e69c7a21ada0fc853a4f5806.zip
Adjust tests to expect new math intrinsics to be
emitted only when errno is not in use. llvm-svn: 55797
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/FrontendC/libcalls-d.c4
-rw-r--r--llvm/test/FrontendC/libcalls-ld.c4
-rw-r--r--llvm/test/FrontendC/libcalls.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/llvm/test/FrontendC/libcalls-d.c b/llvm/test/FrontendC/libcalls-d.c
index e9e31dbada6..126866ad629 100644
--- a/llvm/test/FrontendC/libcalls-d.c
+++ b/llvm/test/FrontendC/libcalls-d.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\\.f64}
+// -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\\.f64}
+// RUN: %llvmgcc %s -S -fmath-errno -emit-llvm -O0 -o - | grep {call.*exp2}
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2}
diff --git a/llvm/test/FrontendC/libcalls-ld.c b/llvm/test/FrontendC/libcalls-ld.c
index ce612e91c37..6533eb88d9e 100644
--- a/llvm/test/FrontendC/libcalls-ld.c
+++ b/llvm/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}
diff --git a/llvm/test/FrontendC/libcalls.c b/llvm/test/FrontendC/libcalls.c
index 9bb84316ebd..a2761dd5b00 100644
--- a/llvm/test/FrontendC/libcalls.c
+++ b/llvm/test/FrontendC/libcalls.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\\.f32}
+// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
+// RUN: %llvmgcc %s -S -emit-llvm -fno-math-errno -O0 -o - | grep {call.*exp2\\.f32}
+// RUN: %llvmgcc %s -S -emit-llvm -fmath-errno -O0 -o - | grep {call.*exp2f}
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2f}
OpenPOWER on IntegriCloud