summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/inlineasm-sched-bug.ll
blob: 3eb5fb0eb46684a33d964dc7ed9b9f32c5fb796a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; PR13504
; RUN: llc -mtriple=i686-- -mcpu=atom <%s | FileCheck %s
; CHECK: bsfl
; CHECK-NOT: movl

define i32 @foo(i32 %treemap) nounwind uwtable {
entry:
  %sub = sub i32 0, %treemap
  %and = and i32 %treemap, %sub
  %0 = tail call i32 asm "bsfl $1,$0\0A\09", "=r,rm,~{dirflag},~{fpsr},~{flags}"(i32 %and) nounwind
  ret i32 %0
}

OpenPOWER on IntegriCloud