summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2005-08-12 23:40:14 +0000
committerJim Laskey <jlaskey@mac.com>2005-08-12 23:40:14 +0000
commit461edda709611902959de41eb2e087862cc6719a (patch)
treefb97c0ede574c44dd87a493cca63577425c41f6f
parenta568700618283e290a4fb692797b4a1263eeb127 (diff)
downloadbcm5719-llvm-461edda709611902959de41eb2e087862cc6719a.tar.gz
bcm5719-llvm-461edda709611902959de41eb2e087862cc6719a.zip
Added test cases to guarantee use of ORC and ANDC.
llvm-svn: 22772
-rw-r--r--llvm/test/Regression/CodeGen/PowerPC/eqv.ll28
1 files changed, 27 insertions, 1 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/eqv.ll b/llvm/test/Regression/CodeGen/PowerPC/eqv.ll
index 716b2f76e28..21ee93cd441 100644
--- a/llvm/test/Regression/CodeGen/PowerPC/eqv.ll
+++ b/llvm/test/Regression/CodeGen/PowerPC/eqv.ll
@@ -1,4 +1,6 @@
-; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 2 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep andc | wc -l | grep 2 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep orc | wc -l | grep 2
int %test1(int %X, int %Y) {
%A = xor int %X, %Y
@@ -11,3 +13,27 @@ int %test2(int %X, int %Y) {
%B = xor int %A, -1
ret int %B
}
+
+int %test3(int %X, int %Y) {
+ %A = xor int %Y, -1
+ %B = and int %X, %A
+ ret int %B
+}
+
+int %test4(int %X, int %Y) {
+ %A = xor int %Y, -1
+ %B = or int %X, %A
+ ret int %B
+}
+
+int %test5(int %X, int %Y) {
+ %A = xor int %X, -1
+ %B = and int %A, %Y
+ ret int %B
+}
+
+int %test6(int %X, int %Y) {
+ %A = xor int %X, -1
+ %B = or int %A, %Y
+ ret int %B
+}
OpenPOWER on IntegriCloud