1 ; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s 2 3 define i64 @t1(i64 %X) nounwind readnone { 4 entry: 5 ; CHECK: dclz 6 %tmp1 = tail call i64 @llvm.ctlz.i64(i64 %X, i1 true) 7 ret i64 %tmp1 8 } 9 10 declare i64 @llvm.ctlz.i64(i64, i1) nounwind readnone 11 12 define i64 @t3(i64 %X) nounwind readnone { 13 entry: 14 ; CHECK: dclo 15 %neg = xor i64 %X, -1 16 %tmp1 = tail call i64 @llvm.ctlz.i64(i64 %neg, i1 true) 17 ret i64 %tmp1 18 } 19 20