summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis/CostModel/X86/vectorized-loop.ll
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-11-03 00:39:56 +0000
committerNadav Rotem <nrotem@apple.com>2012-11-03 00:39:56 +0000
commitc2345cbe73e82d76d2f53802ba6b56fce4ece148 (patch)
tree13e2ec53068aab53fa6ad23bcb7fb52d12fdf77d /llvm/test/Analysis/CostModel/X86/vectorized-loop.ll
parentc59571878c27a47d869dfd618f6a62de32b56d00 (diff)
downloadbcm5719-llvm-c2345cbe73e82d76d2f53802ba6b56fce4ece148.tar.gz
bcm5719-llvm-c2345cbe73e82d76d2f53802ba6b56fce4ece148.zip
X86 CostModel: Add support for a some of the common arithmetic instructions for SSE4, AVX and AVX2.
llvm-svn: 167347
Diffstat (limited to 'llvm/test/Analysis/CostModel/X86/vectorized-loop.ll')
-rw-r--r--llvm/test/Analysis/CostModel/X86/vectorized-loop.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/Analysis/CostModel/X86/vectorized-loop.ll b/llvm/test/Analysis/CostModel/X86/vectorized-loop.ll
index fbf20de5153..7919a9ca9a6 100644
--- a/llvm/test/Analysis/CostModel/X86/vectorized-loop.ll
+++ b/llvm/test/Analysis/CostModel/X86/vectorized-loop.ll
@@ -30,10 +30,12 @@ vector.body: ; preds = %for.body.lr.ph, %ve
%5 = bitcast i32* %4 to <8 x i32>*
;CHECK: cost of 1 {{.*}} load
%6 = load <8 x i32>* %5, align 4
+ ;CHECK: cost of 4 {{.*}} mul
%7 = mul nsw <8 x i32> %6, <i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5>
%8 = getelementptr inbounds i32* %A, i64 %index
%9 = bitcast i32* %8 to <8 x i32>*
%10 = load <8 x i32>* %9, align 4
+ ;CHECK: cost of 4 {{.*}} add
%11 = add nsw <8 x i32> %10, %7
;CHECK: cost of 1 {{.*}} store
store <8 x i32> %11, <8 x i32>* %9, align 4
OpenPOWER on IntegriCloud