File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
test/Analysis/CostModel/AArch64 Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5584,7 +5584,8 @@ InstructionCost AArch64TTIImpl::getShuffleCost(
5584
5584
}
5585
5585
5586
5586
// Segmented shuffle matching.
5587
- if ((ST->hasSVE2p1 () || ST->hasSME2p1 ()) &&
5587
+ if ((ST->hasSVE2p1 () ||
5588
+ (ST->hasSME2p1 () && ST->isSVEorStreamingSVEAvailable ())) &&
5588
5589
Kind == TTI::SK_PermuteSingleSrc && isa<FixedVectorType>(Tp) &&
5589
5590
Tp->getPrimitiveSizeInBits ().isKnownMultipleOf (
5590
5591
AArch64::SVEBitsPerBlock)) {
Original file line number Diff line number Diff line change 1
1
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 5
2
- ; RUN: opt -passes="print<cost-model>" -cost-kind=throughput 2>&1 -disable-output -mtriple=aarch64--linux-gnu < %s | FileCheck %s
2
+ ; RUN: opt -passes="print<cost-model>" -cost-kind=throughput 2>&1 -disable-output -mtriple=aarch64--linux-gnu -mattr=+sve2p1 < %s | FileCheck %s
3
+ ; RUN: opt -passes="print<cost-model>" -cost-kind=throughput 2>&1 -disable-output -mtriple=aarch64--linux-gnu -mattr=+sme2p1 -force-streaming < %s | FileCheck %s
3
4
4
5
;; Broadcast indexed lane within 128b segments (dupq zd.t, zn.t[idx])
5
6
define void @dup_within_each_segment () #0 {
@@ -22,4 +23,4 @@ define void @dup_within_each_segment() #0 {
22
23
ret void
23
24
}
24
25
25
- attributes #0 = { noinline vscale_range(2 ,2 ) "target-features" = "+sve2p1" }
26
+ attributes #0 = { noinline vscale_range(2 ,2 ) }
You can’t perform that action at this time.
0 commit comments