22 lines · plain
1; RUN: llc < %s -mtriple=mipsel -verify-machineinstrs2; Make sure machine verifier understands the last instruction of a basic block3; is not the terminator instruction after delay slot filler pass is run.4 5@g = external global i326 7define void @foo() nounwind {8entry:9 %0 = load i32, ptr @g, align 410 %tobool = icmp eq i32 %0, 011 br i1 %tobool, label %if.end, label %if.then12 13if.then: ; preds = %entry14 %add = add nsw i32 %0, 1015 store i32 %add, ptr @g, align 416 br label %if.end17 18if.end: ; preds = %entry, %if.then19 ret void20}21 22