Bob Wilson | 56724a6 | 2009-10-27 06:31:02 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=thumb -mattr=+thumb2,+v7a | FileCheck %s |
David Goodwin | 7e2af1b | 2009-06-26 20:47:43 +0000 | [diff] [blame] | 2 | |
3 | define i32 @f1(i32 %a) { | ||||
Bob Wilson | 56724a6 | 2009-10-27 06:31:02 +0000 | [diff] [blame] | 4 | ; CHECK: f1: |
5 | ; CHECK: clz r | ||||
David Goodwin | 7e2af1b | 2009-06-26 20:47:43 +0000 | [diff] [blame] | 6 | %tmp = tail call i32 @llvm.ctlz.i32(i32 %a) |
7 | ret i32 %tmp | ||||
8 | } | ||||
9 | |||||
10 | declare i32 @llvm.ctlz.i32(i32) nounwind readnone |