summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendC/libcalls-d.c
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/FrontendC/libcalls-d.c')
-rw-r--r--llvm/test/FrontendC/libcalls-d.c4
1 files changed, 3 insertions, 1 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}
OpenPOWER on IntegriCloud