[llvm-branch-commits] [llvm] [AMDGPU][True16] Add legalization/selection handling for G_MERGE_VALUES of 2 s16 -> s32 (PR #200082)

Petar Avramovic via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu May 28 03:29:09 PDT 2026


================
@@ -706,7 +706,9 @@ RegBankLegalizeRules::RegBankLegalizeRules(const GCNSubtarget &_ST,
       .Any({{DivBRC, BRC}, {{}, {}, ApplyAllVgpr}});
 
   addRulesForGOpcs({G_MERGE_VALUES, G_CONCAT_VECTORS})
+      .Any({{UniBRC, S16}, {{}, {}, VerifyAllSgpr}})
       .Any({{UniBRC, BRC}, {{}, {}, VerifyAllSgpr}})
+      .Any({{DivBRC, S16}, {{}, {}, ApplyAllVgpr}})
----------------
petar-avramovic wrote:

try to add vgpr variant of some of the existing tests, for example s_andn2_v3i16, also move G_MERGE_VALUES to same group as G_BUILD_VECTOR, these rules do not apply to G_CONCAT_VECTORS

https://github.com/llvm/llvm-project/pull/200082


More information about the llvm-branch-commits mailing list