1; RUN: llc < %s -march=x86 | FileCheck %s
2
3define i32* @t() nounwind optsize ssp {
4entry:
5; CHECK-LABEL: t:
6; CHECK: testl %eax, %eax
7; CHECK: js
8  %cmp = icmp slt i32 undef, 0                    ; <i1> [#uses=1]
9  %outsearch.0 = select i1 %cmp, i1 false, i1 true ; <i1> [#uses=1]
10  br i1 %outsearch.0, label %if.then27, label %if.else29
11
12if.then27:                                        ; preds = %entry
13  ret i32* undef
14
15if.else29:                                        ; preds = %entry
16  unreachable
17}
18
19