summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-05-14 20:25:42 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-05-14 20:25:42 +0000
commitf96b4ab92d6a95a0720d18b1cd948a95d0cb54e7 (patch)
tree1fe6f6c3cb998c6df183392c3021b325754c9f1c /llvm/test
parentde4467b182e37392d028dfd469883ef5f0b275fb (diff)
downloadbcm5719-llvm-f96b4ab92d6a95a0720d18b1cd948a95d0cb54e7.tar.gz
bcm5719-llvm-f96b4ab92d6a95a0720d18b1cd948a95d0cb54e7.zip
[X86][AVX2] Fix costs for v4i64 ashr by splat
llvm-svn: 303022
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Analysis/CostModel/X86/vshift-ashr-cost.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Analysis/CostModel/X86/vshift-ashr-cost.ll b/llvm/test/Analysis/CostModel/X86/vshift-ashr-cost.ll
index c2e2960ec31..9b3b58a42b1 100644
--- a/llvm/test/Analysis/CostModel/X86/vshift-ashr-cost.ll
+++ b/llvm/test/Analysis/CostModel/X86/vshift-ashr-cost.ll
@@ -192,7 +192,7 @@ define <4 x i64> @splatvar_shift_v4i64(<4 x i64> %a, i64 %b) {
; SSE2: Found an estimated cost of 8 for instruction: %shift
; SSE41: Found an estimated cost of 8 for instruction: %shift
; AVX: Found an estimated cost of 10 for instruction: %shift
-; AVX2: Found an estimated cost of 10 for instruction: %shift
+; AVX2: Found an estimated cost of 4 for instruction: %shift
; AVX512: Found an estimated cost of 1 for instruction: %shift
; XOP: Found an estimated cost of 6 for instruction: %shift
%insert = insertelement <4 x i64> undef, i64 %b, i32 0
@@ -206,7 +206,7 @@ define <8 x i64> @splatvar_shift_v8i64(<8 x i64> %a, i64 %b) {
; SSE2: Found an estimated cost of 16 for instruction: %shift
; SSE41: Found an estimated cost of 16 for instruction: %shift
; AVX: Found an estimated cost of 20 for instruction: %shift
-; AVX2: Found an estimated cost of 20 for instruction: %shift
+; AVX2: Found an estimated cost of 8 for instruction: %shift
; AVX512: Found an estimated cost of 1 for instruction: %shift
; XOP: Found an estimated cost of 12 for instruction: %shift
%insert = insertelement <8 x i64> undef, i64 %b, i32 0
OpenPOWER on IntegriCloud