Skip to content

Commit 6930c3a

Browse files
committed
[RISCV][GISel] Make s64 G_LOAD/G_STORE legal on RV32 with D extension.
1 parent fe846bc commit 6930c3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
111111
{s64, p0, s64, 64}});
112112
ExtLoadActions.legalForTypesWithMemDesc(
113113
{{s64, p0, s8, 8}, {s64, p0, s16, 16}, {s64, p0, s32, 32}});
114+
} else if (ST.hasStdExtD()) {
115+
LoadStoreActions.legalForTypesWithMemDesc({{s64, p0, s64, 64}});
114116
}
115117
LoadStoreActions.clampScalar(0, s32, sXLen).lower();
116118
ExtLoadActions.widenScalarToNextPow2(0).clampScalar(0, s32, sXLen).lower();

0 commit comments

Comments
 (0)