From d3942b4701d16d7c0dcd3f8dd37fd9de9b73821b Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Wed, 4 May 2005 15:51:07 +0000 Subject: 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 --- test/CodeGen/Alpha/ctlz.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/CodeGen/Alpha/ctlz.ll (limited to 'test/CodeGen/Alpha/ctlz.ll') 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 +} -- cgit v1.1