Skip to content

Commit

Permalink
[AArch64][GISel] Expand coverage of FRem.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
davemgreen committed Sep 1, 2023
1 parent 469c3e7 commit 55dc73a
Show file tree
Hide file tree
Showing 2 changed files with 1,584 additions and 1 deletion.
5 changes: 4 additions & 1 deletion llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
.clampNumElements(0, v2s64, v2s64)
.moreElementsToNextPow2(0);

getActionDefinitionsBuilder(G_FREM).libcallFor({s32, s64});
getActionDefinitionsBuilder(G_FREM)
.libcallFor({s32, s64})
.minScalar(0, s32)
.scalarize(0);

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

0 comments on commit 55dc73a

Please sign in to comment.