1 ; RUN: opt -mtriple=hexagon -disable-verify -debug-pass-manager \
2 ; RUN: -disable-output -passes='default<O1>' -S %s 2>&1 \
3 ; RUN: | FileCheck %s --check-prefix=NPM
4 ; RUN: opt -mtriple=hexagon -disable-verify -debug-pass-manager \
5 ; RUN: -disable-output -passes='default<O2>' -S %s 2>&1 \
6 ; RUN: | FileCheck %s --check-prefix=NPM
7 ; RUN: opt -mtriple=hexagon -disable-verify -debug-pass-manager \
8 ; RUN: -disable-output -passes='default<O3>' -S %s 2>&1 \
9 ; RUN: | FileCheck %s --check-prefix=NPM
11 ; Test TargetMachine::registerPassBuilderCallbacks
12 ; NPM: Running pass: HexagonVectorLoopCarriedReusePass
14 declare void @bar() local_unnamed_addr
16 define void @foo(i32 %n) local_unnamed_addr {
20 %iv = phi i32 [ 0, %entry ], [ %iv.next, %loop ]
21 %iv.next = add i32 %iv, 1
23 %cmp = icmp eq i32 %iv, %n
24 br i1 %cmp, label %exit, label %loop