summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
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
commit52742c25aed30fffd7e419638dc8832bacf2cb75 (patch)
treeb5c6d604f4019fac90992b173a04e1f7a36ea1a0 /llvm/test/CodeGen
parenta7c84e605094f6593593e5ec2e58e40d6724bd70 (diff)
downloadbcm5719-llvm-52742c25aed30fffd7e419638dc8832bacf2cb75.tar.gz
bcm5719-llvm-52742c25aed30fffd7e419638dc8832bacf2cb75.zip
LLVM enablement for some older PowerPC CPUs
llvm-svn: 174230
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/PowerPC/pwr3-6x.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/pwr3-6x.ll b/llvm/test/CodeGen/PowerPC/pwr3-6x.ll
new file mode 100644
index 00000000000..a9cfe412fd8
--- /dev/null
+++ b/llvm/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
OpenPOWER on IntegriCloud