summaryrefslogtreecommitdiff
path: root/test/CodeGen/Alpha/srl_and.ll
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-06-02 17:52:33 +0000
committerEd Schouten <ed@FreeBSD.org>2009-06-02 17:52:33 +0000
commit009b1c42aa6266385f2c37e227516b24077e6dd7 (patch)
tree64ba909838c23261cace781ece27d106134ea451 /test/CodeGen/Alpha/srl_and.ll
Diffstat (limited to 'test/CodeGen/Alpha/srl_and.ll')
-rw-r--r--test/CodeGen/Alpha/srl_and.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/srl_and.ll b/test/CodeGen/Alpha/srl_and.ll
new file mode 100644
index 0000000000000..2344833dc5b36
--- /dev/null
+++ b/test/CodeGen/Alpha/srl_and.ll
@@ -0,0 +1,10 @@
+; Make sure this testcase codegens to the zapnot instruction
+; RUN: llvm-as < %s | llc -march=alpha | grep zapnot
+
+define i64 @foo(i64 %y) {
+entry:
+ %tmp = lshr i64 %y, 3 ; <i64> [#uses=1]
+ %tmp2 = and i64 %tmp, 8191 ; <i64> [#uses=1]
+ ret i64 %tmp2
+}
+