summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/pwr3-6x.ll
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-02-01 22:59:51 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-02-01 22:59:51 +0000
commitcdc3b74cfb8a1fb3d053106cd8843a39fbb5e2e5 (patch)
tree967d97c4f5bf2e39b4638d2f4d2544a8aeae1e20 /test/CodeGen/PowerPC/pwr3-6x.ll
parent5a4041e7282ca1dba93fe1a97c8260c0ef621f5d (diff)
downloadllvm-cdc3b74cfb8a1fb3d053106cd8843a39fbb5e2e5.tar.gz
llvm-cdc3b74cfb8a1fb3d053106cd8843a39fbb5e2e5.tar.bz2
llvm-cdc3b74cfb8a1fb3d053106cd8843a39fbb5e2e5.tar.xz
LLVM enablement for some older PowerPC CPUs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/pwr3-6x.ll')
-rw-r--r--test/CodeGen/PowerPC/pwr3-6x.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/pwr3-6x.ll b/test/CodeGen/PowerPC/pwr3-6x.ll
new file mode 100644
index 0000000000..a9cfe412fd
--- /dev/null
+++ b/test/CodeGen/PowerPC/pwr3-6x.ll
@@ -0,0 +1,14 @@
+; Test basic support for some older processors.
+
+;RUN: llc < %s -march=ppc64 -mcpu=pwr3 | FileCheck %s
+;RUN: llc < %s -march=ppc64 -mcpu=pwr4 | FileCheck %s
+;RUN: llc < %s -march=ppc64 -mcpu=pwr5 | FileCheck %s
+;RUN: llc < %s -march=ppc64 -mcpu=pwr5x | FileCheck %s
+;RUN: llc < %s -march=ppc64 -mcpu=pwr6x | FileCheck %s
+
+define void @foo() {
+entry:
+ ret void
+}
+
+; CHECK: @foo