1 ; RUN: llc < %s -verify-machineinstrs -mtriple=i686-linux -mattr=-sse | FileCheck %s
4 @ptr = external global i8*
6 define void @baz() nounwind ssp {
8 %0 = load i8*, i8** @ptr, align 4
9 %cmp = icmp eq i8* %0, null
11 br i1 %cmp, label %if.then, label %if.else
13 ; Make sure the fence comes before the comparison, since it
17 ; CHECK-NEXT: orl {{.*}}, (%esp)
18 ; CHECK-NEXT: testl [[REG:%e[a-z]+]], [[REG]]
20 if.then: ; preds = %entry
21 tail call void bitcast (void (...)* @foo to void ()*)() nounwind
24 if.else: ; preds = %entry
25 tail call void bitcast (void (...)* @bar to void ()*)() nounwind
28 if.end: ; preds = %if.else, %if.then
32 declare void @foo(...)
34 declare void @bar(...)