summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-03-28 20:23:46 +0000
committerHal Finkel <hfinkel@anl.gov>2013-03-28 20:23:46 +0000
commit22e41c411ef7ebb8f7f9b5d4e2accc2b09e5dd81 (patch)
tree6eb06b2ca0b7a3f430f7f4c63e78ef991c967aa4 /llvm/test
parent49f9885a2ac6a5b9bd85d66588fccab0de25923b (diff)
downloadbcm5719-llvm-22e41c411ef7ebb8f7f9b5d4e2accc2b09e5dd81.tar.gz
bcm5719-llvm-22e41c411ef7ebb8f7f9b5d4e2accc2b09e5dd81.zip
Only enable 64-bit bswap DAG combines for PPC64
Compiling in 32-bit mode on a P7 would assert after 64-bit DAG combines were added for bswap with load/store. This is because these combines are really only valid in 64-bit mode, regardless of the CPU (and this was not being checked). llvm-svn: 178286
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/PowerPC/bswap-load-store.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/bswap-load-store.ll b/llvm/test/CodeGen/PowerPC/bswap-load-store.ll
index 2aae4150efb..6b60fdd6e1a 100644
--- a/llvm/test/CodeGen/PowerPC/bswap-load-store.ll
+++ b/llvm/test/CodeGen/PowerPC/bswap-load-store.ll
@@ -1,6 +1,7 @@
; RUN: llc < %s -march=ppc32 | FileCheck %s -check-prefix=X32
; RUN: llc < %s -march=ppc64 | FileCheck %s -check-prefix=X64
; RUN: llc < %s -march=ppc64 -mcpu=pwr7 | FileCheck %s -check-prefix=PWR7
+; RUN: llc < %s -march=ppc32 -mcpu=pwr7 | FileCheck %s -check-prefix=X32
define void @STWBRX(i32 %i, i8* %ptr, i32 %off) {
OpenPOWER on IntegriCloud