summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-04-14 05:59:09 +0000
committerHal Finkel <hfinkel@anl.gov>2014-04-14 05:59:09 +0000
commit1aee811d7183da0982360e04bad2170c9dc0bfd8 (patch)
tree9e99d692ae9b94d22a333641cffbe8cac82c7b6d /test
parent17f9c2e35b0f0caa44a7674347886de7c5bd05aa (diff)
downloadllvm-1aee811d7183da0982360e04bad2170c9dc0bfd8.tar.gz
llvm-1aee811d7183da0982360e04bad2170c9dc0bfd8.tar.bz2
llvm-1aee811d7183da0982360e04bad2170c9dc0bfd8.tar.xz
Don't assert in BasicTTI::getMemoryOpCost for non-simple types
BasicTTI::getMemoryOpCost must explicitly check for non-simple types; setting AllowUnknown=true with TLI->getSimpleValueType is not sufficient because, for example, non-power-of-two vector types return non-simple EVTs (not MVT::Other). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Analysis/CostModel/PowerPC/load_store.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Analysis/CostModel/PowerPC/load_store.ll b/test/Analysis/CostModel/PowerPC/load_store.ll
index 40862780fa..368f0a7348 100644
--- a/test/Analysis/CostModel/PowerPC/load_store.ll
+++ b/test/Analysis/CostModel/PowerPC/load_store.ll
@@ -37,6 +37,9 @@ define i32 @loads(i32 %arg) {
; CHECK: cost of 1 {{.*}} load
load <4 x i32>* undef, align 4
+ ; CHECK: cost of 46 {{.*}} load
+ load <3 x float>* undef, align 1
+
ret i32 undef
}