; Make sure the cmp is not scheduled before the InlineAsm that clobbers cc.
; CHECK: bl _f2
; CHECK: cmp {{r[0-9]+}}, #0
-; CHECK-NOT: cmp
-; CHECK: InlineAsm Start
+; CHECK-NEXT: it eq
+; CHECK-NEXT: addeq {{r[0-9]+}}, #1
+; CHECK-NEXT: lsls
+; CHECK-NEXT: InlineAsm Start
define void @test(%s1* %this, i32 %format, i32 %w, i32 %h, i32 %levels, i32* %s, i8* %data, i32* nocapture %rowbytes, void (i8*, i8*)* %release, i8* %info) nounwind {
entry:
%tmp1 = getelementptr inbounds %s1, %s1* %this, i32 0, i32 0, i32 0, i32 1, i32 0, i32 0