see if the legalize code propery compensates for the additional zeros introduced
authorAndrew Lenharth <andrewl@lenharth.org>
Wed, 4 May 2005 15:51:07 +0000 (15:51 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Wed, 4 May 2005 15:51:07 +0000 (15:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21684 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Alpha/ctlz.ll [new file with mode: 0644]

diff --git a/test/CodeGen/Alpha/ctlz.ll b/test/CodeGen/Alpha/ctlz.ll
new file mode 100644 (file)
index 0000000..06255ec
--- /dev/null
@@ -0,0 +1,12 @@
+; Make sure this testcase codegens to the bic instruction
+; RUN: llvm-as < %s | llc -march=alpha -enable-alpha-CT | grep 'ctlz'
+
+declare ubyte %llvm.ctlz(ubyte)
+
+implementation   ; Functions:
+
+ubyte %bar(ubyte %x) {
+entry:
+       %tmp.1 = call ubyte %llvm.ctlz( ubyte %x ) 
+       ret ubyte %tmp.1
+}