From dd9d3ac72be2214e7d9b03cca1bd67f270bee3b2 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 llvm-svn: 21684 --- llvm/test/Regression/CodeGen/Alpha/ctlz.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/Regression/CodeGen/Alpha/ctlz.ll (limited to 'llvm/test/Regression/CodeGen/Alpha/ctlz.ll') diff --git a/llvm/test/Regression/CodeGen/Alpha/ctlz.ll b/llvm/test/Regression/CodeGen/Alpha/ctlz.ll new file mode 100644 index 00000000000..06255eca9ee --- /dev/null +++ b/llvm/test/Regression/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.2.3