@@ -733,18 +733,18 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
733
733
.widenScalarOrEltToNextPow2OrMinSize (0 , /* MinSize=*/ HasFP16 ? 16 : 32 )
734
734
.widenScalarIf (
735
735
[=](const LegalityQuery &Query) {
736
- return Query.Types [0 ].getScalarSizeInBits () <= 64 &&
737
- Query.Types [0 ].getScalarSizeInBits () >
736
+ return Query.Types [1 ].getScalarSizeInBits () <= 64 &&
737
+ Query.Types [0 ].getScalarSizeInBits () <
738
738
Query.Types [1 ].getScalarSizeInBits ();
739
739
},
740
- LegalizeMutations::changeElementSizeTo (1 , 0 ))
740
+ LegalizeMutations::changeElementSizeTo (0 , 1 ))
741
741
.widenScalarIf (
742
742
[=](const LegalityQuery &Query) {
743
- return Query.Types [1 ].getScalarSizeInBits () <= 64 &&
744
- Query.Types [0 ].getScalarSizeInBits () <
743
+ return Query.Types [0 ].getScalarSizeInBits () <= 64 &&
744
+ Query.Types [0 ].getScalarSizeInBits () >
745
745
Query.Types [1 ].getScalarSizeInBits ();
746
746
},
747
- LegalizeMutations::changeElementSizeTo (0 , 1 ))
747
+ LegalizeMutations::changeElementSizeTo (1 , 0 ))
748
748
.clampNumElements (0 , v4s16, v8s16)
749
749
.clampNumElements (0 , v2s32, v4s32)
750
750
.clampMaxNumElements (0 , s64, 2 )
0 commit comments