added a random and mask test
authorAndrew Lenharth <andrewl@lenharth.org>
Thu, 14 Apr 2005 16:17:49 +0000 (16:17 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Thu, 14 Apr 2005 16:17:49 +0000 (16:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21301 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Alpha/zapnot2.ll [new file with mode: 0644]

diff --git a/test/CodeGen/Alpha/zapnot2.ll b/test/CodeGen/Alpha/zapnot2.ll
new file mode 100644 (file)
index 0000000..342c269
--- /dev/null
@@ -0,0 +1,10 @@
+; Make sure this testcase codegens to the zapnot instruction
+; RUN: llvm-as < %s | llc -march=alpha | grep 'zapnot'
+
+implementation   ; Functions:
+
+long %bar(long %x) {
+entry:
+       %tmp.1 = and long %x, 255               ; <long> [#uses=1]
+       ret long %tmp.2
+}