On Dec 5, 2012, at 10:48 AM, Dmitri Gribenko <[email protected]> wrote:
> On Tue, Dec 4, 2012 at 2:36 AM, Michael Ilseman <[email protected]> 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. > I'll remove these > 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 <[email protected]>*/ _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
