; 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
; 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 ; <i1>:0 [#uses=1]
br i1 %0, label %return, label %bb
; 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
; 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 ; <i1> [#uses=1]
br i1 %tmp2132, label %bb23, label %bb18
@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 ; <i32> [#uses=1]
br label %cond_true
; 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