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