X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FFrontendC%2Flibcalls-ld.c;h=6533eb88d9e520acca4fa9d6ddcd69bf4ec785c2;hb=d1d73b03afec3475dc8e1f2c2de6945116c9581d;hp=ce612e91c37e59400adaf2ce036a24b58d3e3454;hpb=928e865d954433d67cfcac8d7243e13e12c287dc;p=oota-llvm.git diff --git a/test/FrontendC/libcalls-ld.c b/test/FrontendC/libcalls-ld.c index ce612e91c37..6533eb88d9e 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}