[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
Fri May 29 00:23:02 PDT 2026
================
@@ -1,10 +1,8 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
-# RUN: not llc -global-isel -new-reg-bank-select -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1100 -run-pass=amdgpu-regbanklegalize -mattr=+real-true16 %s 2>&1 | FileCheck -check-prefix=GFX11-ERR %s
-# GFX11-ERR: LLVM ERROR: AMDGPU RegBankLegalize: none of the rules defined with 'Any' for MI's opcode matched MI: %4:sgpr(s32) = G_MERGE_VALUES %2:sgpr(s16), %3:sgpr(s16) (in function: test_merge_s16_into_s32_sgpr)
+# RUN: llc -global-isel -new-reg-bank-select -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1100 -run-pass=amdgpu-regbanklegalize -mattr=+real-true16 -o - %s | FileCheck -check-prefix=GFX11 %s
----------------
petar-avramovic wrote:
imo no need to test this, ll tests should cover it, can remove. If you really want to keep it name is wrong, legalize tests test Legalizer, we don't really test amdgpu-regbanklegalize mir only, similar old tests are named regbankselect-xyz but we do amdgpu-regbankselect + amdgpu-regbanklegalize there
https://github.com/llvm/llvm-project/pull/200082
More information about the llvm-branch-commits
mailing list