1; RUN: llc < %s -march=x86-64 -mattr=+lzcnt | FileCheck %s 2 3define i32 @t1(i32 %x) nounwind { 4 %tmp = tail call i32 @llvm.ctlz.i32( i32 %x ) 5 ret i32 %tmp 6; CHECK: t1: 7; CHECK: lzcntl 8} 9 10declare i32 @llvm.ctlz.i32(i32) nounwind readnone 11 12define i16 @t2(i16 %x) nounwind { 13 %tmp = tail call i16 @llvm.ctlz.i16( i16 %x ) 14 ret i16 %tmp 15; CHECK: t2: 16; CHECK: lzcntw 17} 18 19declare i16 @llvm.ctlz.i16(i16) nounwind readnone 20 21define i64 @t3(i64 %x) nounwind { 22 %tmp = tail call i64 @llvm.ctlz.i64( i64 %x ) 23 ret i64 %tmp 24; CHECK: t3: 25; CHECK: lzcntq 26} 27 28declare i64 @llvm.ctlz.i64(i64) nounwind readnone 29 30define i8 @t4(i8 %x) nounwind { 31 %tmp = tail call i8 @llvm.ctlz.i8( i8 %x ) 32 ret i8 %tmp 33; CHECK: t4: 34; CHECK: lzcntw 35} 36 37declare i8 @llvm.ctlz.i8(i8) nounwind readnone 38 39