1 ; RUN: llc < %s -march=x86-64 -mattr=+lzcnt | FileCheck %s
3 declare i8 @llvm.ctlz.i8(i8, i1) nounwind readnone
4 declare i16 @llvm.ctlz.i16(i16, i1) nounwind readnone
5 declare i32 @llvm.ctlz.i32(i32, i1) nounwind readnone
6 declare i64 @llvm.ctlz.i64(i64, i1) nounwind readnone
8 define i8 @t1(i8 %x) nounwind {
9 %tmp = tail call i8 @llvm.ctlz.i8( i8 %x, i1 false )
15 define i16 @t2(i16 %x) nounwind {
16 %tmp = tail call i16 @llvm.ctlz.i16( i16 %x, i1 false )
22 define i32 @t3(i32 %x) nounwind {
23 %tmp = tail call i32 @llvm.ctlz.i32( i32 %x, i1 false )
29 define i64 @t4(i64 %x) nounwind {
30 %tmp = tail call i64 @llvm.ctlz.i64( i64 %x, i1 false )
36 define i8 @t5(i8 %x) nounwind {
37 %tmp = tail call i8 @llvm.ctlz.i8( i8 %x, i1 true )
43 define i16 @t6(i16 %x) nounwind {
44 %tmp = tail call i16 @llvm.ctlz.i16( i16 %x, i1 true )
50 define i32 @t7(i32 %x) nounwind {
51 %tmp = tail call i32 @llvm.ctlz.i32( i32 %x, i1 true )
57 define i64 @t8(i64 %x) nounwind {
58 %tmp = tail call i64 @llvm.ctlz.i64( i64 %x, i1 true )