Skip to content

Commit 09f14b4

Browse files
committed
[AMDGPU] Add regbankselect rules for G_FSHR
1 parent 77cd34e commit 09f14b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,9 @@ RegBankLegalizeRules::RegBankLegalizeRules(const GCNSubtarget &_ST,
526526
.Div(S32, {{Vgpr32}, {Vgpr32, Vgpr32}})
527527
.Div(S64, {{Vgpr64}, {Vgpr64, Vgpr32}});
528528

529+
addRulesForGOpcs({G_FSHR}, Standard)
530+
.Div(S32, {{Vgpr32}, {Vgpr32, Vgpr32, Vgpr32}});
531+
529532
addRulesForGOpcs({G_FRAME_INDEX}).Any({{UniP5, _}, {{SgprP5}, {None}}});
530533

531534
addRulesForGOpcs({G_UBFX, G_SBFX}, Standard)

0 commit comments

Comments
 (0)