summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-28 18:04:22 +0000
committerChris Lattner <sabre@nondot.org>2005-09-28 18:04:22 +0000
commit3e63428b2da2c15b9392ce55b93e71a229ff1d2b (patch)
tree856462154441889ce229764b97dc3e46dcaff400
parent05814af29f67facfaf56168551ac9421bee04a1c (diff)
downloadllvm-3e63428b2da2c15b9392ce55b93e71a229ff1d2b.tar.gz
llvm-3e63428b2da2c15b9392ce55b93e71a229ff1d2b.tar.bz2
llvm-3e63428b2da2c15b9392ce55b93e71a229ff1d2b.tar.xz
Consolidate the eqv.ll and nor.ll files together.
Add a missed eqv case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23493 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/PowerPC/eqv-andc-orc-nor.ll58
-rw-r--r--test/CodeGen/PowerPC/eqv.ll39
-rw-r--r--test/CodeGen/PowerPC/nor.ll12
3 files changed, 58 insertions, 51 deletions
diff --git a/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll b/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll
new file mode 100644
index 0000000000..620f2e4b91
--- /dev/null
+++ b/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll
@@ -0,0 +1,58 @@
+; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 3 &&
+; 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 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep nor | wc -l | grep 2
+
+int %EQV1(int %X, int %Y) {
+ %A = xor int %X, %Y
+ %B = xor int %A, -1
+ ret int %B
+}
+
+int %EQV2(int %X, int %Y) {
+ %A = xor int %X, -1
+ %B = xor int %A, %Y
+ ret int %B
+}
+
+int %EQV3(int %X, int %Y) {
+ %A = xor int %X, -1
+ %B = xor int %Y, %A
+ ret int %B
+}
+
+int %ANDC1(int %X, int %Y) {
+ %A = xor int %Y, -1
+ %B = and int %X, %A
+ ret int %B
+}
+
+int %ANDC2(int %X, int %Y) {
+ %A = xor int %X, -1
+ %B = and int %A, %Y
+ ret int %B
+}
+
+int %ORC1(int %X, int %Y) {
+ %A = xor int %Y, -1
+ %B = or int %X, %A
+ ret int %B
+}
+
+int %ORC2(int %X, int %Y) {
+ %A = xor int %X, -1
+ %B = or int %A, %Y
+ ret int %B
+}
+
+int %NOR1(int %X) {
+ %Y = xor int %X, -1
+ ret int %Y
+}
+
+int %NOR2(int %X, int %Y) {
+ %Z = or int %X, %Y
+ %R = xor int %Z, -1
+ ret int %R
+}
+
diff --git a/test/CodeGen/PowerPC/eqv.ll b/test/CodeGen/PowerPC/eqv.ll
deleted file mode 100644
index 21ee93cd44..0000000000
--- a/test/CodeGen/PowerPC/eqv.ll
+++ /dev/null
@@ -1,39 +0,0 @@
-; 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
- %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
-}
-
-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
-}
diff --git a/test/CodeGen/PowerPC/nor.ll b/test/CodeGen/PowerPC/nor.ll
deleted file mode 100644
index 94111e1aad..0000000000
--- a/test/CodeGen/PowerPC/nor.ll
+++ /dev/null
@@ -1,12 +0,0 @@
-; RUN: llvm-as < %s | llc -march=ppc32 | grep nor | wc -l | grep 2
-
-int %test1(int %X) {
- %Y = xor int %X, -1
- ret int %Y
-}
-
-int %test2(int %X, int %Y) {
- %Z = or int %X, %Y
- %R = xor int %Z, -1
- ret int %R
-}