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