1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=i686-- | FileCheck %s 3 4define fastcc i32 @_Z18yy_get_next_bufferv() nounwind { 5; CHECK-LABEL: _Z18yy_get_next_bufferv: 6; CHECK: # %bb.0: # %entry 7; CHECK-NEXT: movl $42, %eax 8; CHECK-NEXT: cmpl $-1, %eax 9; CHECK-NEXT: je .LBB0_3 10; CHECK-NEXT: .p2align 4, 0x90 11; CHECK-NEXT: .LBB0_1: # %bb116 12; CHECK-NEXT: # =>This Inner Loop Header: Depth=1 13; CHECK-NEXT: movb %al, 0 14; CHECK-NEXT: cmpl $-1, %eax 15; CHECK-NEXT: jne .LBB0_1 16; CHECK-NEXT: .LBB0_3: # %bb158 17; CHECK-NEXT: movb %al, 0 18; CHECK-NEXT: cmpl $-1, %eax 19; CHECK-NEXT: xorl %eax, %eax 20; CHECK-NEXT: retl 21entry: 22 br label %bb131 23 24bb116: ; preds = %bb131 25 %tmp125126 = trunc i32 %c.1 to i8 ; <i8> [#uses=1] 26 store i8 %tmp125126, i8* null, align 1 27 br label %bb131 28 29bb131: ; preds = %bb116, %entry 30 %c.2 = phi i32 [ %c.1, %bb116 ], [ 42, %entry ] ; <i32> [#uses=1] 31 %c.1 = select i1 false, i32 0, i32 %c.2 ; <i32> [#uses=4] 32 %tmp181 = icmp eq i32 %c.1, -1 ; <i1> [#uses=1] 33 br i1 %tmp181, label %bb158, label %bb116 34 35bb158: ; preds = %bb131 36 br i1 true, label %cond_true163, label %cond_next178 37 38cond_true163: ; preds = %bb158 39 %tmp172173 = trunc i32 %c.1 to i8 ; <i8> [#uses=1] 40 store i8 %tmp172173, i8* null, align 1 41 br label %cond_next178 42 43cond_next178: ; preds = %cond_true163, %bb158 44 %tmp180 = icmp eq i32 %c.1, -1 ; <i1> [#uses=1] 45 br i1 %tmp180, label %cond_next184, label %cond_next199 46 47cond_next184: ; preds = %cond_next178 48 ret i32 0 49 50cond_next199: ; preds = %cond_next178 51 ret i32 0 52} 53