File tree 1 file changed +3
-3
lines changed
llvm/lib/Target/RISCV/GISel
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -570,10 +570,10 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
570
570
[=, &ST](const LegalityQuery &Query) {
571
571
return Query.Types [0 ].isScalar () && Query.Types [1 ].isScalar () &&
572
572
(Query.Types [1 ].getSizeInBits () < ST.getXLen ()) &&
573
- ((ST.hasStdExtF () && Query.Types [1 ].getSizeInBits () == 32 ) ||
574
- (ST.hasStdExtD () && Query.Types [1 ].getSizeInBits () == 64 ) ||
573
+ ((ST.hasStdExtF () && Query.Types [0 ].getSizeInBits () == 32 ) ||
574
+ (ST.hasStdExtD () && Query.Types [0 ].getSizeInBits () == 64 ) ||
575
575
(ST.hasStdExtZfh () &&
576
- Query.Types [1 ].getSizeInBits () == 16 ));
576
+ Query.Types [0 ].getSizeInBits () == 16 ));
577
577
},
578
578
LegalizeMutations::changeTo (1 , sXLen ))
579
579
// Otherwise only promote to s32 since we have si libcalls.
You can’t perform that action at this time.
0 commit comments