From: Chris Lattner Date: Sat, 3 Apr 2010 06:22:52 +0000 (+0000) Subject: rename test since it is a feature test. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=415d754f53116480ef9f15a52c8552d87d542c99;p=oota-llvm.git rename test since it is a feature test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100277 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll b/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll deleted file mode 100644 index 311d3daa8f3..00000000000 --- a/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll +++ /dev/null @@ -1,35 +0,0 @@ -; RUN: opt < %s -indvars -S | grep icmp | count 2 -; RUN: opt < %s -indvars -S | grep sitofp | count 1 -; RUN: opt < %s -indvars -S | grep uitofp | count 1 - -define void @bar() nounwind { -entry: - br label %bb - -bb: ; preds = %bb, %entry - %x.0.reg2mem.0 = phi double [ 0.000000e+00, %entry ], [ %1, %bb ] ; [#uses=2] - %0 = tail call i32 @foo(double %x.0.reg2mem.0) nounwind ; [#uses=0] - %1 = fadd double %x.0.reg2mem.0, 1.0e+0 ; [#uses=2] - %2 = fcmp olt double %1, 2147483646.0e+0 ; [#uses=1] - br i1 %2, label %bb, label %return - -return: ; preds = %bb - ret void -} - -define void @bar1() nounwind { -entry: - br label %bb - -bb: ; preds = %bb, %entry - %x.0.reg2mem.0 = phi double [ 0.000000e+00, %entry ], [ %1, %bb ] ; [#uses=2] - %0 = tail call i32 @foo(double %x.0.reg2mem.0) nounwind ; [#uses=0] - %1 = fadd double %x.0.reg2mem.0, 1.0e+0 ; [#uses=2] - %2 = fcmp olt double %1, 2147483647.0e+0 ; [#uses=1] - br i1 %2, label %bb, label %return - -return: ; preds = %bb - ret void -} - -declare i32 @foo(double) diff --git a/test/Transforms/IndVarSimplify/floating-point-iv.ll b/test/Transforms/IndVarSimplify/floating-point-iv.ll new file mode 100644 index 00000000000..311d3daa8f3 --- /dev/null +++ b/test/Transforms/IndVarSimplify/floating-point-iv.ll @@ -0,0 +1,35 @@ +; RUN: opt < %s -indvars -S | grep icmp | count 2 +; RUN: opt < %s -indvars -S | grep sitofp | count 1 +; RUN: opt < %s -indvars -S | grep uitofp | count 1 + +define void @bar() nounwind { +entry: + br label %bb + +bb: ; preds = %bb, %entry + %x.0.reg2mem.0 = phi double [ 0.000000e+00, %entry ], [ %1, %bb ] ; [#uses=2] + %0 = tail call i32 @foo(double %x.0.reg2mem.0) nounwind ; [#uses=0] + %1 = fadd double %x.0.reg2mem.0, 1.0e+0 ; [#uses=2] + %2 = fcmp olt double %1, 2147483646.0e+0 ; [#uses=1] + br i1 %2, label %bb, label %return + +return: ; preds = %bb + ret void +} + +define void @bar1() nounwind { +entry: + br label %bb + +bb: ; preds = %bb, %entry + %x.0.reg2mem.0 = phi double [ 0.000000e+00, %entry ], [ %1, %bb ] ; [#uses=2] + %0 = tail call i32 @foo(double %x.0.reg2mem.0) nounwind ; [#uses=0] + %1 = fadd double %x.0.reg2mem.0, 1.0e+0 ; [#uses=2] + %2 = fcmp olt double %1, 2147483647.0e+0 ; [#uses=1] + br i1 %2, label %bb, label %return + +return: ; preds = %bb + ret void +} + +declare i32 @foo(double)