aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/Alpha/ctpop.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/ctpop.ll b/test/CodeGen/Alpha/ctpop.ll
new file mode 100644
index 0000000000..610d6cc1d1
--- /dev/null
+++ b/test/CodeGen/Alpha/ctpop.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 'ctpop'
+
+declare long %llvm.ctpop(long)
+
+implementation ; Functions:
+
+long %bar(long %x) {
+entry:
+ %tmp.1 = call long %llvm.ctpop( long %x )
+ ret long %tmp.1
+}