diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-05-04 15:51:07 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-05-04 15:51:07 +0000 |
commit | d3942b4701d16d7c0dcd3f8dd37fd9de9b73821b (patch) | |
tree | 556026787473b26ba92546dd27ee8ace553711f7 /test/CodeGen/Alpha | |
parent | 68fb553332f582f5f910fd346e0dd4de80346d67 (diff) | |
download | external_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')
-rw-r--r-- | test/CodeGen/Alpha/ctlz.ll | 12 |
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 +} |