summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-10-02 22:34:22 +0000
committerHal Finkel <hfinkel@anl.gov>2014-10-02 22:34:22 +0000
commitfe3368cb57eceff4671de7be47d426c8e46fa0d9 (patch)
treecfed89bb432e8c5715f34a04a7dca09a558c21e7 /llvm/test
parente1ca44bd4c1dd12106b6e933c8649363a69ac6c6 (diff)
downloadbcm5719-llvm-fe3368cb57eceff4671de7be47d426c8e46fa0d9.tar.gz
bcm5719-llvm-fe3368cb57eceff4671de7be47d426c8e46fa0d9.zip
[PowerPC] Modern Book-E cores support sync
Older Book-E cores, such as the PPC 440, support only msync (which has the same encoding as sync 0), but not any of the other sync forms. Newer Book-E cores, however, do support sync, and for performance reasons we should allow the use of the more-general form. This refactors msync use into its own feature group so that it applies by default only to older Book-E cores (of the relevant cores, we only have definitions for the PPC440/450 currently). llvm-svn: 218923
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/PowerPC/ppc440-msync.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/ppc440-msync.ll b/llvm/test/CodeGen/PowerPC/ppc440-msync.ll
index 1274173256c..3f4e7fd0d2d 100644
--- a/llvm/test/CodeGen/PowerPC/ppc440-msync.ll
+++ b/llvm/test/CodeGen/PowerPC/ppc440-msync.ll
@@ -1,4 +1,5 @@
; RUN: llc < %s -march=ppc32 | FileCheck %s
+; RUN: llc < %s -march=ppc64 -mcpu=a2 | FileCheck %s
; RUN: llc < %s -march=ppc32 -mcpu=440 | FileCheck %s -check-prefix=BE-CHK
define i32 @has_a_fence(i32 %a, i32 %b) nounwind {
OpenPOWER on IntegriCloud