<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58341>58341</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
32-bit X86 build fails with lib/Target/AMDGPU/SIRegisterInfo.td: error: Variable not defined: 'sub10'
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ms178
</td>
</tr>
</table>
<pre>
Trying to build lib32-llvm-git 16.0.0_r438740.b13f7f9c0660 fails on 32-bit X86 with the following errors:
```
[2599/4510] Building AMDGPUGenDAGISel.inc...
FAILED: lib/Target/AMDGPU/AMDGPUGenDAGISel.inc /home/marcus/Downloads/lib32-llvm-git/src/_build/lib/Target/AMDGPU/AMDGPUGenDAGISel.inc
cd /home/marcus/Downloads/lib32-llvm-git/src/_build && /home/marcus/Downloads/lib32-llvm-git/src/_build/bin/llvm-tblgen -gen-dag-isel -I /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU -I/home/marcus/Downloads/lib32-llvm-git/src/_build/include -I/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/include -I /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target -omit-comments /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenDAGISel.inc -d lib/Target/AMDGPU/AMDGPUGenDAGISel.inc.d
Included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td:1787:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.td:65:42: error: Variable not defined: 'sub10'
sub8, sub9, sub10, sub11,
^
Included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td:1787:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.td:65:47: error: expected ';' after declaration
sub8, sub9, sub10, sub11,
^
[2601/4510] Building AMDGPUGenAsmWriter.inc...
FAILED: lib/Target/AMDGPU/AMDGPUGenAsmWriter.inc /home/marcus/Downloads/lib32-llvm-git/src/_build/lib/Target/AMDGPU/AMDGPUGenAsmWriter.inc
cd /home/marcus/Downloads/lib32-llvm-git/src/_build && /home/marcus/Downloads/lib32-llvm-git/src/_build/bin/llvm-tblgen -gen-asm-writer -I /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU -I/home/marcus/Downloads/lib32-llvm-git/src/_build/include -I/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/include -I /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenAsmWriter.inc -d lib/Target/AMDGPU/AMDGPUGenAsmWriter.inc.d
Included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td:1787:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.td:65:42: error: Variable not defined: 'sub10'
sub8, sub9, sub10, sub11,
^
Included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td:1787:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.td:65:47: error: expected ';' after declaration
sub8, sub9, sub10, sub11,
^
[2602/4510] Building AMDGPUGenCallingConv.inc...
FAILED: lib/Target/AMDGPU/AMDGPUGenCallingConv.inc /home/marcus/Downloads/lib32-llvm-git/src/_build/lib/Target/AMDGPU/AMDGPUGenCallingConv.inc
cd /home/marcus/Downloads/lib32-llvm-git/src/_build && /home/marcus/Downloads/lib32-llvm-git/src/_build/bin/llvm-tblgen -gen-callingconv -I /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU -I/home/marcus/Downloads/lib32-llvm-git/src/_build/include -I/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/include -I /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenCallingConv.inc -d lib/Target/AMDGPU/AMDGPUGenCallingConv.inc.d
Included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td:1787:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.td:65:42: error: Variable not defined: 'sub10'
sub8, sub9, sub10, sub11,
^
Included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td:1787:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.td:65:47: error: expected ';' after declaration
sub8, sub9, sub10, sub11,
^
[2603/4510] Building AMDGPUGenDisassemblerTables.inc...
FAILED: lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc /home/marcus/Downloads/lib32-llvm-git/src/_build/lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc
cd /home/marcus/Downloads/lib32-llvm-git/src/_build && /home/marcus/Downloads/lib32-llvm-git/src/_build/bin/llvm-tblgen -gen-disassembler -I /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU -I/home/marcus/Downloads/lib32-llvm-git/src/_build/include -I/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/include -I /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc -d lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc.d
Included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td:1787:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.td:65:42: error: Variable not defined: 'sub10'
sub8, sub9, sub10, sub11,
^
Included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td:1787:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.td:65:47: error: expected ';' after declaration
sub8, sub9, sub10, sub11,
^
[2604/4510] Building AMDGPUGenAsmMatcher.inc...
FAILED: lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc /home/marcus/Downloads/lib32-llvm-git/src/_build/lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc
cd /home/marcus/Downloads/lib32-llvm-git/src/_build && /home/marcus/Downloads/lib32-llvm-git/src/_build/bin/llvm-tblgen -gen-asm-matcher -I /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU -I/home/marcus/Downloads/lib32-llvm-git/src/_build/include -I/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/include -I /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc -d lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc.d
Included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td:1787:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.td:65:42: error: Variable not defined: 'sub10'
sub8, sub9, sub10, sub11,
^
Included from /home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPU.td:1787:
/home/marcus/Downloads/lib32-llvm-git/src/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.td:65:47: error: expected ';' after declaration
sub8, sub9, sub10, sub11,
^
[2634/4510] Building CXX object lib/ExecutionEngine/RuntimeDyld/CMakeFiles/LLVMRuntimeDyld.dir/RuntimeDyldELF.cpp.o
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztmltvozgUgH9N8mKBuAQIDzykuVSRWmk1053p28gYQ7xrcGSb6fTf7zF0pqFNoyRVukUiQmBsnws-x_5ay6nIHpM7-ciqAmmB0prxDHGW-p7F-c_SKphGbmg7tvNDTvxpNHHs1PXzKI-JE4YOyjHjCokKgUAKfe-nIXpgeoP0hqJccC4ejGoqpZBq5M9GzmLk_L6HztPVvgZXXhDHI281CVxnFCzQlfHGiM9uF9d__X1Nq8Xsev2VcptVxLbtVm41W98sF6Db-A3Sd1gWVEOhlfpT6IojqN-IksKjxJLUCgoL8VBxgTNT7o4BVChJ4P6jGaG2_QRbjaMke5dREA7heq_jKatML9OuU17QCllwszJcWExRjqz1mRaaiq0U_1Cin17fGicw8s6vgFHldUbPVrTf2WetFxsDZImSaYuIsqSVVpcf6z8FW2fIsh4k09RiuUU2uCooVInT5o2VndTfztrkX7dDm6FcivJjvxqWBjeaRs-rzwcY_7r-QgumNJXrKhetE2EAt4lnVqpmPTSFb1gynHKKKqFRRnNWUdMVBihSdQrLoBe1TqNDP-g6HXlz84yfnka0LbhQOELH7m8ULIeodaIWdaJGf21BHzVLMjRcwR3hHKQggoRjiTUT1f8Qtm7sDE9Dxz3I05kqv5sFQZ5L1I6CizP1hbXPT1WsynbFlQNXL8zVXoC0m8DHoLQ7QweYDjDtf9R6C1PvIEznmHOomIvq57k4faHi4kB9Ze_zI5W0LhNweWDqwNTXOXwMVV9O1YGrA1f7H7XectU_yNUFU1gpWkIGyjuTh-rs_d-9mi6_FfyG2c8P22zH84G2A23fzOWjdoX3z-OBvQN7-x-13rJ3cpC9M1XeYk0279oh3tHwEVvEHXOfn7Fmj7hsXR4QOyD2VQofuUu8O00HpA5I7X_U-opUfy9S5_f3SKRmTJ6m8_IXJbXxelkVkIJQ86WuNCvp4rFZZee3-F-6YvBnMrzc3Hy73Wm2Mya7AsublU22W1vsPWE1pokbhkEYum4cjbPEz2I_xmPNNKfJztGtFnftoa7mGNcpUTtpho1ryZON1tvmVJi3ggtyaFOnNhHlTtZ0c4kpVTfjEUz9iTveJCTO3QyncegSQqaRG3t0SokfO37sxXnsjTlOKVcJBAaiMWaJ53ie67i-6_pxENpB4IZ5kJE4yNPIgcyaOLSEz7eNYVvIYiyTxoe0LhQ0cvhm9dwI_8-woqL0t35c642QSalgGo0bZ5PG0_8A2QQWRA">