summaryrefslogtreecommitdiff
path: root/test/CodeGen/Alpha/not.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/not.ll
Diffstat (limited to 'test/CodeGen/Alpha/not.ll')
-rw-r--r--test/CodeGen/Alpha/not.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/not.ll b/test/CodeGen/Alpha/not.ll
new file mode 100644
index 0000000000000..cea9f6bc95f58
--- /dev/null
+++ b/test/CodeGen/Alpha/not.ll
@@ -0,0 +1,8 @@
+; Make sure this testcase codegens to the ornot instruction
+; RUN: llvm-as < %s | llc -march=alpha | grep eqv
+
+define i64 @bar(i64 %x) {
+entry:
+ %tmp.1 = xor i64 %x, -1 ; <i64> [#uses=1]
+ ret i64 %tmp.1
+}