[llvm] [AMDGPU][GlobalISel] Add RegBankLegalize support for G_FLDEXP (PR #175072)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 8 13:33:54 PST 2026
================
@@ -978,6 +978,14 @@ RegBankLegalizeRules::RegBankLegalizeRules(const GCNSubtarget &_ST,
.Uni(S32, {{UniInVgprS32}, {Vgpr32, Vgpr32, Vgpr32}})
.Div(S32, {{Vgpr32}, {Vgpr32, Vgpr32, Vgpr32}});
+ addRulesForGOpcs({G_FLDEXP}, Standard)
+ .Uni(S16, {{UniInVgprS16}, {Vgpr16, Vgpr16}})
+ .Div(S16, {{Vgpr16}, {Vgpr16, Vgpr16}})
+ .Uni(S32, {{UniInVgprS32}, {Vgpr32, Vgpr32}})
+ .Div(S32, {{Vgpr32}, {Vgpr32, Vgpr32}})
----------------
arsenm wrote:
Move the common 32-bit cases to the top
https://github.com/llvm/llvm-project/pull/175072
More information about the llvm-commits
mailing list