view test/CodeGen/X86/inlineasm-sched-bug.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children 803732b1fca8
line wrap: on
line source

; PR13504
; RUN: llc -march=x86 -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
}