summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-11-05 21:12:13 +0000
committerNadav Rotem <nrotem@apple.com>2012-11-05 21:12:13 +0000
commita4ab5290e6808c54aff178d465d533e4eba53feb (patch)
tree825d6c953291e7870c97e5704b79e9533785fe0d /test
parent75138f58b0abaff54270481e879bc770df88114c (diff)
downloadllvm-a4ab5290e6808c54aff178d465d533e4eba53feb.tar.gz
llvm-a4ab5290e6808c54aff178d465d533e4eba53feb.tar.bz2
llvm-a4ab5290e6808c54aff178d465d533e4eba53feb.tar.xz
Cost Model: Normalize the insert/extract index when splitting types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Analysis/CostModel/X86/insert-extract-at-zero.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Analysis/CostModel/X86/insert-extract-at-zero.ll b/test/Analysis/CostModel/X86/insert-extract-at-zero.ll
index eea5b601d0..87bf7c488b 100644
--- a/test/Analysis/CostModel/X86/insert-extract-at-zero.ll
+++ b/test/Analysis/CostModel/X86/insert-extract-at-zero.ll
@@ -29,5 +29,12 @@ define i32 @insert-extract-at-zero-idx(i32 %arg, float %fl) {
;CHECK: cost of 0 {{.*}} insert
%J = insertelement <4 x double> undef, double undef, i32 0
+ ;CHECK: cost of 0 {{.*}} insert
+ %K = insertelement <8 x double> undef, double undef, i32 4
+ ;CHECK: cost of 0 {{.*}} insert
+ %L = insertelement <16 x double> undef, double undef, i32 8
+ ;CHECK: cost of 1 {{.*}} insert
+ %M = insertelement <16 x double> undef, double undef, i32 9
ret i32 0
}
+