1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=i686-- | FileCheck %s
3
4define i32* @t(i32 %a0) nounwind optsize ssp {
5; CHECK-LABEL: t:
6; CHECK:       # %bb.0: # %entry
7; CHECK-NEXT:    cmpl $0, {{[0-9]+}}(%esp)
8; CHECK-NEXT:    js .LBB0_2
9; CHECK-NEXT:  # %bb.1: # %if.then27
10; CHECK-NEXT:    retl
11; CHECK-NEXT:  .LBB0_2: # %if.else29
12entry:
13  %cmp = icmp slt i32 %a0, 0                    ; <i1> [#uses=1]
14  %outsearch.0 = select i1 %cmp, i1 false, i1 true ; <i1> [#uses=1]
15  br i1 %outsearch.0, label %if.then27, label %if.else29
16
17if.then27:                                        ; preds = %entry
18  ret i32* undef
19
20if.else29:                                        ; preds = %entry
21  unreachable
22}
23
24