1 ; RUN: opt %loadPolly -polly-detect -polly-detect-track-failures -disable-output -pass-remarks-missed=polly-detect < %s 2>&1 | FileCheck %s --check-prefix=REMARK
2 ; RUN: opt %loadPolly -polly-detect -polly-detect-track-failures -disable-output -stats < %s 2>&1 | FileCheck %s --check-prefix=STAT
5 ; REMARK: Branch from indirect terminator.
7 ; STAT: 1 polly-detect - Number of rejected regions: Branch from indirect terminator
10 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
11 target triple = "x86_64-unknown-linux-gnu"
13 define void @func(i32 %n, ptr noalias nonnull %A) {
15 callbr void asm sideeffect "", "!i,~{dirflag},~{fpsr},~{flags}"() #1
16 to label %fallthrough [label %for]
22 %j = phi i32 [0, %entry], [0, %fallthrough], [%j.inc, %inc]
23 %j.cmp = icmp slt i32 %j, %n
24 br i1 %j.cmp, label %body, label %exit
27 store double 42.0, ptr %A
31 %j.inc = add nuw nsw i32 %j, 1