Saleem Abdulrasool | 905b6d19 | 2014-04-03 23:47:24 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2,+v7 %s -o - | FileCheck %s |
David Goodwin | aa294c5 | 2009-06-26 20:47:43 +0000 | [diff] [blame] | 2 | |
| 3 | define i32 @f1(i32 %a) { |
Stephen Lin | d24ab20 | 2013-07-14 06:24:09 +0000 | [diff] [blame] | 4 | ; CHECK-LABEL: f1: |
Bob Wilson | 3d43b38 | 2009-10-27 06:31:02 +0000 | [diff] [blame] | 5 | ; CHECK: clz r |
Chandler Carruth | 6b0e34c | 2011-12-12 11:59:10 +0000 | [diff] [blame] | 6 | %tmp = tail call i32 @llvm.ctlz.i32(i32 %a, i1 true) |
David Goodwin | aa294c5 | 2009-06-26 20:47:43 +0000 | [diff] [blame] | 7 | ret i32 %tmp |
| 8 | } |
| 9 | |
Chandler Carruth | 6b0e34c | 2011-12-12 11:59:10 +0000 | [diff] [blame] | 10 | declare i32 @llvm.ctlz.i32(i32, i1) nounwind readnone |