From: Dan Gohman Date: Mon, 18 May 2009 15:16:49 +0000 (+0000) Subject: Add nounwind to a few tests. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=04623272d29aa15b913f53748516b206d60c0f29;p=oota-llvm.git Add nounwind to a few tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72002 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll b/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll index a90c8049027..d8731b69751 100644 --- a/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll +++ b/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll @@ -3,7 +3,7 @@ ; RUN: grep -F "backedge-taken count is (-2147483632 + (2147483632 smax (-1 + (-1 * %x)) smax (-1 + (-1 * %y))))" ; PR2607 -define i32 @b(i32 %x, i32 %y) { +define i32 @b(i32 %x, i32 %y) nounwind { entry: %cmp2 = icmp slt i32 %y, %x %cond3 = select i1 %cmp2, i32 %y, i32 %x diff --git a/test/CodeGen/ARM/arm-negative-stride.ll b/test/CodeGen/ARM/arm-negative-stride.ll index 1048fb7ad62..553c2fb6467 100644 --- a/test/CodeGen/ARM/arm-negative-stride.ll +++ b/test/CodeGen/ARM/arm-negative-stride.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as < %s | llc -march=arm | grep {str r1, \\\[r.*, -r.*, lsl #2\} -define void @test(i32* %P, i32 %A, i32 %i) { +define void @test(i32* %P, i32 %A, i32 %i) nounwind { entry: icmp eq i32 %i, 0 ; :0 [#uses=1] br i1 %0, label %return, label %bb diff --git a/test/CodeGen/ARM/lsr-scale-addr-mode.ll b/test/CodeGen/ARM/lsr-scale-addr-mode.ll index 230cf3e5e72..6db0d43e834 100644 --- a/test/CodeGen/ARM/lsr-scale-addr-mode.ll +++ b/test/CodeGen/ARM/lsr-scale-addr-mode.ll @@ -1,7 +1,7 @@ ; RUN: llvm-as < %s | llc -march=arm | grep -F {str r2, \[r0, +r3, lsl #2\]} ; Should use scaled addressing mode. -define void @sintzero(i32* %a) { +define void @sintzero(i32* %a) nounwind { entry: store i32 0, i32* %a br label %cond_next diff --git a/test/CodeGen/X86/2007-11-06-InstrSched.ll b/test/CodeGen/X86/2007-11-06-InstrSched.ll index f2542ea5ef5..605fb551205 100644 --- a/test/CodeGen/X86/2007-11-06-InstrSched.ll +++ b/test/CodeGen/X86/2007-11-06-InstrSched.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep lea -define float @foo(i32* %x, float* %y, i32 %c) { +define float @foo(i32* %x, float* %y, i32 %c) nounwind { entry: %tmp2132 = icmp eq i32 %c, 0 ; [#uses=1] br i1 %tmp2132, label %bb23, label %bb18 diff --git a/test/CodeGen/X86/loop-hoist.ll b/test/CodeGen/X86/loop-hoist.ll index 5f0f40ad111..73284a488ed 100644 --- a/test/CodeGen/X86/loop-hoist.ll +++ b/test/CodeGen/X86/loop-hoist.ll @@ -8,7 +8,7 @@ @Arr = external global [0 x i32] ; <[0 x i32]*> [#uses=1] -define void @foo(i32 %N.in, i32 %x) { +define void @foo(i32 %N.in, i32 %x) nounwind { entry: %N = bitcast i32 %N.in to i32 ; [#uses=1] br label %cond_true diff --git a/test/Transforms/IndVarSimplify/2007-01-08-X86-64-Pointer.ll b/test/Transforms/IndVarSimplify/2007-01-08-X86-64-Pointer.ll index f1d018740a6..7078494a929 100644 --- a/test/Transforms/IndVarSimplify/2007-01-08-X86-64-Pointer.ll +++ b/test/Transforms/IndVarSimplify/2007-01-08-X86-64-Pointer.ll @@ -1,7 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86-64 | grep {(%rdi,%rax,8)} ; RUN: llvm-as < %s | llc -march=x86-64 | not grep {addq.*8} -define void @foo(double* %y) { +define void @foo(double* %y) nounwind { entry: br label %bb