Evan Cheng | 39dfb0f | 2011-07-07 03:55:05 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=thumb -mattr=+thumb2,+v7 | FileCheck %s |
David Goodwin | 24062ac | 2009-06-26 20:47:43 +0000 | [diff] [blame] | 2 | |
| 3 | define i32 @f1(i32 %a) { |
Bob Wilson | 3798605 | 2009-10-27 06:31:02 +0000 | [diff] [blame] | 4 | ; CHECK: f1: |
| 5 | ; CHECK: clz r |
Chandler Carruth | ddbc274 | 2011-12-12 11:59:10 +0000 | [diff] [blame] | 6 | %tmp = tail call i32 @llvm.ctlz.i32(i32 %a, i1 true) |
David Goodwin | 24062ac | 2009-06-26 20:47:43 +0000 | [diff] [blame] | 7 | ret i32 %tmp |
| 8 | } |
| 9 | |
Chandler Carruth | ddbc274 | 2011-12-12 11:59:10 +0000 | [diff] [blame] | 10 | declare i32 @llvm.ctlz.i32(i32, i1) nounwind readnone |