aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Alpha/ctlz.ll
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-05-04 15:51:07 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-05-04 15:51:07 +0000
commitd3942b4701d16d7c0dcd3f8dd37fd9de9b73821b (patch)
tree556026787473b26ba92546dd27ee8ace553711f7 /test/CodeGen/Alpha/ctlz.ll
parent68fb553332f582f5f910fd346e0dd4de80346d67 (diff)
downloadexternal_llvm-d3942b4701d16d7c0dcd3f8dd37fd9de9b73821b.zip
external_llvm-d3942b4701d16d7c0dcd3f8dd37fd9de9b73821b.tar.gz
external_llvm-d3942b4701d16d7c0dcd3f8dd37fd9de9b73821b.tar.bz2
see if the legalize code propery compensates for the additional zeros introduced
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Alpha/ctlz.ll')
-rw-r--r--test/CodeGen/Alpha/ctlz.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/ctlz.ll b/test/CodeGen/Alpha/ctlz.ll
new file mode 100644
index 0000000..06255ec
--- /dev/null
+++ b/test/CodeGen/Alpha/ctlz.ll
@@ -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
+}