1 ; RUN: llc < %s -march=nvptx 2>&1 | FileCheck %s
2 ; Make sure the example doesn't crash with segfault
4 ; CHECK: .visible .func ({{.*}}) loop
5 define i32 @loop(i32, i32) {
10 %i = phi i32 [ %0, %entry ], [ %res, %loop ]
11 %res = call i32 @div(i32 %i, i32 %1)
13 %exitcond = icmp eq i32 %res, %0
14 br i1 %exitcond, label %exit, label %loop
20 define i32 @div(i32, i32) {