File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1009,6 +1009,12 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
1009
1009
ABSActions
1010
1010
.legalFor ({s32, s64});
1011
1011
ABSActions.legalFor (PackedVectorAllTypeList)
1012
+ .widenScalarIf (
1013
+ [=](const LegalityQuery &Query) { return Query.Types [0 ] == v4s8; },
1014
+ [=](const LegalityQuery &Query) { return std::make_pair (0 , v4s16); })
1015
+ .widenScalarIf (
1016
+ [=](const LegalityQuery &Query) { return Query.Types [0 ] == v2s16; },
1017
+ [=](const LegalityQuery &Query) { return std::make_pair (0 , v2s32); })
1012
1018
.clampNumElements (0 , v8s8, v16s8)
1013
1019
.clampNumElements (0 , v4s16, v8s16)
1014
1020
.clampNumElements (0 , v2s32, v4s32)
Original file line number Diff line number Diff line change 2
2
; RUN: llc -mtriple=aarch64-none-linux-gnu %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-SD
3
3
; RUN: llc -mtriple=aarch64-none-linux-gnu -global-isel -global-isel-abort=2 %s -o - 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-GI
4
4
5
- ; CHECK-GI: warning: Instruction selection used fallback path for abs_v4i8
6
- ; CHECK-GI-NEXT: warning: Instruction selection used fallback path for abs_v2i16
7
-
8
5
; ===== Legal Scalars =====
9
6
10
7
define i8 @abs_i8 (i8 %a ){
You can’t perform that action at this time.
0 commit comments