[cfe-commits] r169191 - in /cfe/trunk: lib/CodeGen/CodeGenFunction.cpp test/CodeGen/fast-math.c test/CodeGen/finite-math.c

Dmitri Gribenko gribozavr at gmail.com
Wed Dec 5 10:48:45 PST 2012


On Tue, Dec 4, 2012 at 2:36 AM, Michael Ilseman <milseman at apple.com> wrote:
> Added: cfe/trunk/test/CodeGen/finite-math.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/finite-math.c?rev=169191&view=auto
> ==============================================================================
> --- cfe/trunk/test/CodeGen/finite-math.c (added)
> +++ cfe/trunk/test/CodeGen/finite-math.c Mon Dec  3 18:36:06 2012
> @@ -0,0 +1,13 @@
> +// RUN: %clang_cc1 -ffinite-math-only -emit-llvm -o - %s | FileCheck %s
> +typedef unsigned cond_t;
> +
> +volatile float f0, f1, f2;
> +
> +void foo(void) {
> +  // CHECK: define void @foo()
> +
> +  // CHECK: fadd nnan ninf
> +  f0 = f1 + f2;
> +
> +  // CHECK: ret
> +}

Hello Michael,

Are 'cond_t' and 'volatile' actually needed in both tests?  The tests
seem to pass without them.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list