| ; RUN: llc < %s -march=x86-64 -mattr=+bmi | FileCheck %s |
| define i32 @t1(i32 %x) nounwind { |
| %tmp = tail call i32 @llvm.cttz.i32( i32 %x ) |
| declare i32 @llvm.cttz.i32(i32) nounwind readnone |
| define i16 @t2(i16 %x) nounwind { |
| %tmp = tail call i16 @llvm.cttz.i16( i16 %x ) |
| declare i16 @llvm.cttz.i16(i16) nounwind readnone |
| define i64 @t3(i64 %x) nounwind { |
| %tmp = tail call i64 @llvm.cttz.i64( i64 %x ) |
| declare i64 @llvm.cttz.i64(i64) nounwind readnone |
| define i8 @t4(i8 %x) nounwind { |
| %tmp = tail call i8 @llvm.cttz.i8( i8 %x ) |
| declare i8 @llvm.cttz.i8(i8) nounwind readnone |
| define i32 @andn32(i32 %x, i32 %y) nounwind readnone { |
| %tmp2 = and i32 %y, %tmp1 |
| define i64 @andn64(i64 %x, i64 %y) nounwind readnone { |
| %tmp2 = and i64 %tmp1, %y |