Skip to content

Commit 55dc73a

Browse files
committed
[AArch64][GISel] Expand coverage of FRem.
This adds some more extensive test coverage for frem through global isel, making sure that vector types are all scalarized and all fp16 become f32 libcalls.
1 parent 469c3e7 commit 55dc73a

File tree

2 files changed

+1584
-1
lines changed

2 files changed

+1584
-1
lines changed

llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,10 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
252252
.clampNumElements(0, v2s64, v2s64)
253253
.moreElementsToNextPow2(0);
254254

255-
getActionDefinitionsBuilder(G_FREM).libcallFor({s32, s64});
255+
getActionDefinitionsBuilder(G_FREM)
256+
.libcallFor({s32, s64})
257+
.minScalar(0, s32)
258+
.scalarize(0);
256259

257260
getActionDefinitionsBuilder({G_FMA, G_INTRINSIC_LRINT})
258261
// If we don't have full FP16 support, then scalarize the elements of

0 commit comments

Comments
 (0)