summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-21 21:10:07 +0000
committerChris Lattner <sabre@nondot.org>2005-04-21 21:10:07 +0000
commit95e43ae1621bdbad248c79d3d5ace8165a68b2a0 (patch)
treea22580bbe605e094e9d5e4934163c61274c685b6
parent3590ef1164bca8ac2ec7dca2b40e796db89a7309 (diff)
downloadbcm5719-llvm-95e43ae1621bdbad248c79d3d5ace8165a68b2a0.tar.gz
bcm5719-llvm-95e43ae1621bdbad248c79d3d5ace8165a68b2a0.zip
Check for eqv matching
llvm-svn: 21414
-rw-r--r--llvm/test/Regression/CodeGen/PowerPC/eqv.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/eqv.ll b/llvm/test/Regression/CodeGen/PowerPC/eqv.ll
new file mode 100644
index 00000000000..716b2f76e28
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/PowerPC/eqv.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 2
+
+int %test1(int %X, int %Y) {
+ %A = xor int %X, %Y
+ %B = xor int %A, -1
+ ret int %B
+}
+
+int %test2(int %X, int %Y) {
+ %A = xor int %X, %Y
+ %B = xor int %A, -1
+ ret int %B
+}
OpenPOWER on IntegriCloud