blob: d496b833a6c6bae652f0009410bfa6735c3446f9 [file] [log] [blame]
Akira Hatanaka1b420ac2012-06-14 20:51:13 +00001; RUN: llc < %s -march=mipsel -verify-machineinstrs
2; Make sure machine verifier understands the last instruction of a basic block
3; is not the terminator instruction after delay slot filler pass is run.
4
5@g = external global i32
6
7define void @foo() nounwind {
8entry:
David Blaikiea79ac142015-02-27 21:17:42 +00009 %0 = load i32, i32* @g, align 4
Akira Hatanaka1b420ac2012-06-14 20:51:13 +000010 %tobool = icmp eq i32 %0, 0
11 br i1 %tobool, label %if.end, label %if.then
12
13if.then: ; preds = %entry
14 %add = add nsw i32 %0, 10
15 store i32 %add, i32* @g, align 4
16 br label %if.end
17
18if.end: ; preds = %entry, %if.then
19 ret void
20}
21