1*9880d681SAndroid Build Coastguard Worker; PR13504 2*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=x86 -mcpu=atom <%s | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker; CHECK: bsfl 4*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: movl 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine i32 @foo(i32 %treemap) nounwind uwtable { 7*9880d681SAndroid Build Coastguard Workerentry: 8*9880d681SAndroid Build Coastguard Worker %sub = sub i32 0, %treemap 9*9880d681SAndroid Build Coastguard Worker %and = and i32 %treemap, %sub 10*9880d681SAndroid Build Coastguard Worker %0 = tail call i32 asm "bsfl $1,$0\0A\09", "=r,rm,~{dirflag},~{fpsr},~{flags}"(i32 %and) nounwind 11*9880d681SAndroid Build Coastguard Worker ret i32 %0 12*9880d681SAndroid Build Coastguard Worker} 13*9880d681SAndroid Build Coastguard Worker 14