diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-03-28 20:23:46 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-03-28 20:23:46 +0000 |
commit | 2544f221c5f4047d7bdf10ec911c86a1d8be4a29 (patch) | |
tree | 89a0791e8e7ee5d1eb6c599e2eea14220da98289 /test | |
parent | 3832eff354eea32f92acf3f5176c6213cb65848b (diff) | |
download | external_llvm-2544f221c5f4047d7bdf10ec911c86a1d8be4a29.zip external_llvm-2544f221c5f4047d7bdf10ec911c86a1d8be4a29.tar.gz external_llvm-2544f221c5f4047d7bdf10ec911c86a1d8be4a29.tar.bz2 |
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).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/PowerPC/bswap-load-store.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/bswap-load-store.ll b/test/CodeGen/PowerPC/bswap-load-store.ll index 2aae415..6b60fdd 100644 --- a/test/CodeGen/PowerPC/bswap-load-store.ll +++ b/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) { |