summaryrefslogtreecommitdiff
path: root/test/CodeGen/Alpha/not.ll
diff options
context:
space:
mode:
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 000000000000..cea9f6bc95f5
--- /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
+}