[llvm-commits] [llvm] r93824 - /llvm/trunk/test/CodeGen/ARM/ctz.ll
Evan Cheng
evan.cheng at apple.com
Mon Jan 18 16:35:20 PST 2010
Author: evancheng
Date: Mon Jan 18 18:35:20 2010
New Revision: 93824
URL: http://llvm.org/viewvc/llvm-project?rev=93824&view=rev
Log:
Test case for r93758.
Added:
llvm/trunk/test/CodeGen/ARM/ctz.ll
Added: llvm/trunk/test/CodeGen/ARM/ctz.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ctz.ll?rev=93824&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ctz.ll (added)
+++ llvm/trunk/test/CodeGen/ARM/ctz.ll Mon Jan 18 18:35:20 2010
@@ -0,0 +1,11 @@
+; RUN: llc < %s -march=arm -mattr=+v6t2 | FileCheck %s
+
+declare i32 @llvm.cttz.i32(i32)
+
+define i32 @f1(i32 %a) {
+; CHECK: f1:
+; CHECK: rbit
+; CHECK: clz
+ %tmp = call i32 @llvm.cttz.i32( i32 %a )
+ ret i32 %tmp
+}
More information about the llvm-commits
mailing list