check that casts still use zap
authorAndrew Lenharth <andrewl@lenharth.org>
Wed, 13 Apr 2005 13:00:16 +0000 (13:00 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Wed, 13 Apr 2005 13:00:16 +0000 (13:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21283 91177308-0d34-0410-b5e6-96231b3b80d8

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

diff --git a/test/CodeGen/Alpha/zapnot.ll b/test/CodeGen/Alpha/zapnot.ll
new file mode 100644 (file)
index 0000000..f7cb294
--- /dev/null
@@ -0,0 +1,11 @@
+; Make sure this testcase codegens to the bic instruction
+; RUN: llvm-as < %s | llc -march=alpha | grep 'zapnot'
+
+implementation   ; Functions:
+
+ushort %foo(long %y) {
+entry:
+        %tmp.1 = cast long %y to ushort         ; <ushort> [#uses=1]
+        ret ushort %tmp.1
+}
+