Stackmap shadows should consider call returns a branch target.
[oota-llvm.git] / test / CodeGen / X86 / inlineasm-sched-bug.ll
1 ; PR13504
2 ; RUN: llc -march=x86 -mcpu=atom <%s | FileCheck %s
3 ; CHECK: bsfl
4 ; CHECK-NOT: movl
5
6 define i32 @foo(i32 %treemap) nounwind uwtable {
7 entry:
8   %sub = sub i32 0, %treemap
9   %and = and i32 %treemap, %sub
10   %0 = tail call i32 asm "bsfl $1,$0\0A\09", "=r,rm,~{dirflag},~{fpsr},~{flags}"(i32 %and) nounwind
11   ret i32 %0
12 }
13