Files
llvm-project/llvm/test/TableGen/SubRegsLaneBitmask.td
Petr Vesely a9eeb151fb [Tablegen] Fix condition to report when lanemask overflows (#181810)
This PR:

Fixes a slight off-by-one error in the check for how many bits are
allocated for subreg lane masks. If 65 subreg lanes are used, it fails
later, but the error message is not clear as to what has occured.
2026-03-06 09:55:06 +01:00

13 lines
404 B
TableGen

// RUN: not llvm-tblgen -gen-register-info -register-info-debug -I %p/../../include %s -o - 2>&1 | FileCheck %s
include "llvm/Target/Target.td"
def TestTarget : Target;
foreach Index = 0...64 in {
def sub#Index : SubRegIndex<32, !shl(Index, 5)>;
}
def A : Register<"">;
def TestRC : RegisterClass<"Test", [i32], 0, (add A)>;
// CHECK: error: Ran out of lanemask bits to represent subregister sub64