[llvm] [AMDGPU] Account for inline asm size in inst_pref_size calculation (PR #192306)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 12:12:13 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 133630 tests passed
* 3106 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/s-barrier-lowering.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -S -mtriple=amdgcn-- -passes=amdgpu-lower-exec-sync,amdgpu-lower-module-lds < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\s-barrier-lowering.ll 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\s-barrier-lowering.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -S -mtriple=amdgcn-- -passes=amdgpu-lower-exec-sync,amdgpu-lower-module-lds
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\s-barrier-lowering.ll'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1250 -verify-machineinstrs -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\s-barrier-lowering.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=SOUT C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\s-barrier-lowering.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1250 -verify-machineinstrs -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\s-barrier-lowering.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=SOUT 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\s-barrier-lowering.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\s-barrier-lowering.ll:31:9: error: SOUT: expected string not found in input
# | ; SOUT: .amdhsa_named_barrier_count 2
# | ^
# | <stdin>:57:35: note: scanning from here
# | .set .Lfunc2.num_named_barrier, 2
# | ^
# | <stdin>:130:2: note: possible intended match here
# | .amdhsa_named_barrier_count ((32768|(instprefsize(.Lfunc_end2-kernel1, 8)<<4))&114688)>>14
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\s-barrier-lowering.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 52: .size func2, .Lfunc_end1-func2
# | 53: ; -- End function
# | 54: .set .Lfunc2.num_vgpr, 0
# | 55: .set .Lfunc2.num_agpr, 0
# | 56: .set .Lfunc2.numbered_sgpr, 32
# | 57: .set .Lfunc2.num_named_barrier, 2
# | check:31'0 X error: no match found
# | 58: .set .Lfunc2.private_seg_size, 0
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 59: .set .Lfunc2.uses_vcc, 0
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 60: .set .Lfunc2.uses_flat_scratch, 0
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 61: .set .Lfunc2.has_dyn_sized_stack, 0
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 62: .set .Lfunc2.has_recursion, 0
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 125: .amdhsa_system_sgpr_workgroup_id_z 1
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 126: .amdhsa_system_sgpr_workgroup_info 0
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 127: .amdhsa_system_vgpr_workitem_id 2
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 128: .amdhsa_next_free_vgpr 32
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 129: .amdhsa_next_free_sgpr 33
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 130: .amdhsa_named_barrier_count ((32768|(instprefsize(.Lfunc_end2-kernel1, 8)<<4))&114688)>>14
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:31'1 ? possible intended match
# | 131: .amdhsa_reserve_vcc 0
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 132: .amdhsa_float_round_mode_32 0
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 133: .amdhsa_float_round_mode_16_64 0
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 134: .amdhsa_float_denorm_mode_32 3
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 135: .amdhsa_float_denorm_mode_16_64 3
# | check:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/192306
More information about the llvm-commits
mailing list