[llvm-commits] [llvm] r55797 - in /llvm/trunk/test/FrontendC: libcalls-d.c libcalls-ld.c libcalls.c
Dale Johannesen
dalej at apple.com
Thu Sep 4 14:24:28 PDT 2008
Author: johannes
Date: Thu Sep 4 16:24:28 2008
New Revision: 55797
URL: http://llvm.org/viewvc/llvm-project?rev=55797&view=rev
Log:
Adjust tests to expect new math intrinsics to be
emitted only when errno is not in use.
Modified:
llvm/trunk/test/FrontendC/libcalls-d.c
llvm/trunk/test/FrontendC/libcalls-ld.c
llvm/trunk/test/FrontendC/libcalls.c
Modified: llvm/trunk/test/FrontendC/libcalls-d.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/libcalls-d.c?rev=55797&r1=55796&r2=55797&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/libcalls-d.c (original)
+++ llvm/trunk/test/FrontendC/libcalls-d.c Thu Sep 4 16:24:28 2008
@@ -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}
Modified: llvm/trunk/test/FrontendC/libcalls-ld.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/libcalls-ld.c?rev=55797&r1=55796&r2=55797&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/libcalls-ld.c (original)
+++ llvm/trunk/test/FrontendC/libcalls-ld.c Thu Sep 4 16:24:28 2008
@@ -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}
Modified: llvm/trunk/test/FrontendC/libcalls.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/libcalls.c?rev=55797&r1=55796&r2=55797&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/libcalls.c (original)
+++ llvm/trunk/test/FrontendC/libcalls.c Thu Sep 4 16:24:28 2008
@@ -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}
More information about the llvm-commits
mailing list