[llvm-branch-commits] [llvm] [SelectionDAG] Don't crash after an error in a callbr's asm (PR #235941)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Nov 1 02:06:34 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 146857 tests passed
* 2291 tests skipped
* 3 tests failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.CodeGen/AArch64/callbr-asm-outputs-indirect-isel.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=aarch64-linux-gnu C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\callbr-asm-outputs-indirect-isel.ll -o - -verify-machineinstrs    -start-before=aarch64-isel -stop-after=finalize-isel    -global-isel=0 -fast-isel=0 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\callbr-asm-outputs-indirect-isel.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=aarch64-linux-gnu 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\callbr-asm-outputs-indirect-isel.ll' -o - -verify-machineinstrs -start-before=aarch64-isel -stop-after=finalize-isel -global-isel=0 -fast-isel=0
# 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\AArch64\callbr-asm-outputs-indirect-isel.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\callbr-asm-outputs-indirect-isel.ll:569:16: error: CHECK-NEXT: expected string not found in input
# |  ; CHECK-NEXT: bb.2.indirect (inlineasm-br-indirect-target):
# |                ^
# | <stdin>:1461:2: note: scanning from here
# |  
# |  ^
# | <stdin>:1462:28: note: possible intended match here
# |  bb.2.indirect (label-must-be-emitted, inlineasm-br-indirect-target):
# |                            ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\callbr-asm-outputs-indirect-isel.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |          1456:  B %bb.1 
# |          1457:   
# |          1458:  bb.1.direct: 
# |          1459:  $w0 = COPY %0 
# |          1460:  RET_ReallyLR implicit $w0 
# |          1461:   
# | next:569'0     {   search range start (exclusive)
# | next:569'1         error: no match found in search range
# |          1462:  bb.2.indirect (label-must-be-emitted, inlineasm-br-indirect-target): 
# | next:569'2                                ?                                            possible intended match
# |          1463:  liveins: $nzcv 
# |          1464:   
# |          1465:  %3:gpr32 = COPY $wzr 
# |          1466:  %4:gpr32 = CSINCWr %3, %3, 1, implicit $nzcv 
# |          1467:  $w0 = COPY %4 
# |          1468:  RET_ReallyLR implicit $w0 
# |          1469: ... 
# | next:569'3         } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.CodeGen/X86/callbr-asm-outputs-indirect-isel-m32.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=i386-linux-gnu C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel-m32.ll -o - -stop-after=finalize-isel    -verify-machineinstrs=0 -disable-mir-output-verify -start-before=x86-isel | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel-m32.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=i386-linux-gnu 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel-m32.ll' -o - -stop-after=finalize-isel -verify-machineinstrs=0 -disable-mir-output-verify -start-before=x86-isel
# 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\X86\callbr-asm-outputs-indirect-isel-m32.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel-m32.ll:139:16: error: CHECK-NEXT: expected string not found in input
# |  ; CHECK-NEXT: bb.2.z.split (inlineasm-br-indirect-target):
# |                ^
# | <stdin>:423:2: note: scanning from here
# |  
# |  ^
# | <stdin>:424:26: note: possible intended match here
# |  bb.2.z.split (label-must-be-emitted, inlineasm-br-indirect-target):
# |                          ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel-m32.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           418:  JMP_1 %bb.1 
# |           419:   
# |           420:  bb.1.cleanup: 
# |           421:  %8:rfp64 = nofpexcept LD_Fp064 implicit-def dead $fpsw, implicit $fpcw 
# |           422:  RET 0, %8 
# |           423:   
# | next:139'0     {   search range start (exclusive)
# | next:139'1         error: no match found in search range
# |           424:  bb.2.z.split (label-must-be-emitted, inlineasm-br-indirect-target): 
# | next:139'2                              ?                                             possible intended match
# |           425:  MOV32mr %stack.1, 1, $noreg, 0, $noreg, %1 :: (store (s32) into %stack.1, align 8) 
# |           426:  MOV32mr %stack.1, 1, $noreg, 4, $noreg, %2 :: (store (s32) into %stack.1 + 4, basealign 8) 
# |           427:  %7:rfp64 = nofpexcept LD_Fp64m %stack.1, 1, $noreg, 0, $noreg, implicit-def dead $fpsw, implicit $fpcw :: (load (s64) from %stack.1) 
# |           428:  RET 0, %7 
# |           429: ... 
# | next:139'3         } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.CodeGen/X86/callbr-asm-outputs-indirect-isel.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=x86_64-linux-gnu C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel.ll -o - -stop-after=finalize-isel    -verify-machineinstrs=0 -disable-mir-output-verify -start-before=x86-isel | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=x86_64-linux-gnu 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel.ll' -o - -stop-after=finalize-isel -verify-machineinstrs=0 -disable-mir-output-verify -start-before=x86-isel
# 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\X86\callbr-asm-outputs-indirect-isel.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel.ll:391:16: error: CHECK-NEXT: expected string not found in input
# |  ; CHECK-NEXT: bb.2.z.split (inlineasm-br-indirect-target):
# |                ^
# | <stdin>:1098:2: note: scanning from here
# |  
# |  ^
# | <stdin>:1099:26: note: possible intended match here
# |  bb.2.z.split (label-must-be-emitted, inlineasm-br-indirect-target):
# |                          ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel.ll:426:16: error: CHECK-NEXT: expected string not found in input
# |  ; CHECK-NEXT: bb.2.z.split (inlineasm-br-indirect-target):
# |                ^
# | <stdin>:1185:2: note: scanning from here
# |  
# |  ^
# | <stdin>:1186:26: note: possible intended match here
# |  bb.2.z.split (label-must-be-emitted, inlineasm-br-indirect-target):
# |                          ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel.ll:468:16: error: CHECK-NEXT: expected string not found in input
# |  ; CHECK-NEXT: bb.2.z.split (inlineasm-br-indirect-target):
# |                ^
# | <stdin>:1271:2: note: scanning from here
# |  
# |  ^
# | <stdin>:1272:26: note: possible intended match here
# |  bb.2.z.split (label-must-be-emitted, inlineasm-br-indirect-target):
# |                          ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\callbr-asm-outputs-indirect-isel.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |          1093:   
# |          1094:  bb.1.cleanup: 
# |          1095:  %5:fr32 = FsFLD0SS 
# |          1096:  $xmm0 = COPY %5 
# |          1097:  RET 0, $xmm0 
# |          1098:   
# | next:391'0     {   search range start (exclusive)
# | next:391'1         error: no match found in search range
# |          1099:  bb.2.z.split (label-must-be-emitted, inlineasm-br-indirect-target): 
# | next:391'2                              ?                                             possible intended match
# |          1100:  %4:fr32 = MOVDI2SSrr %2 
# |          1101:  $xmm0 = COPY %4 
# |          1102:  RET 0, $xmm0 
# |          1103: ... 
# |          1104: --- 
# |          1105: name: double_and_i32_in_gprs 
# | next:391'3                                 }  search range end (exclusive)
# |          1106: alignment: 1 
# |          1107: exposesReturnsTwice: false 
# |          1108: legalized: false 
# |          1109: regBankSelected: false 
# |          1110: selected: false 
# |             .
# |             .
# |             .
# |          1180:   
# |          1181:  bb.1.cleanup: 
# |          1182:  %9:fr64 = FsFLD0SD 
# |          1183:  $xmm0 = COPY %9 
# |          1184:  RET 0, $xmm0 
# |          1185:   
# | next:426'0     {   search range start (exclusive)
# | next:426'1         error: no match found in search range
# |          1186:  bb.2.z.split (label-must-be-emitted, inlineasm-br-indirect-target): 
# | next:426'2                              ?                                             possible intended match
# |          1187:  %6:fr64 = MOV64toSDrr %3 
# |          1188:  %7:fr64 = CVTSI2SDrr %4 
# |          1189:  %8:fr64 = nofpexcept ADDSDrr %6, %7, implicit $mxcsr 
# |          1190:  $xmm0 = COPY %8 
# |          1191:  RET 0, $xmm0 
# |          1192: ... 
# |          1193: --- 
# |          1194: name: float_in_eax 
# | next:426'3                       }  search range end (exclusive)
# |          1195: alignment: 1 
# |          1196: exposesReturnsTwice: false 
# |          1197: legalized: false 
# |          1198: regBankSelected: false 
# |          1199: selected: false 
# |             .
# |             .
# |             .
# |          1266:   
# |          1267:  bb.1.cleanup: 
# |          1268:  %6:fr32 = FsFLD0SS 
# |          1269:  $xmm0 = COPY %6 
# |          1270:  RET 0, $xmm0 
# |          1271:   
# | next:468'0     {   search range start (exclusive)
# | next:468'1         error: no match found in search range
# |          1272:  bb.2.z.split (label-must-be-emitted, inlineasm-br-indirect-target): 
# | next:468'2                              ?                                             possible intended match
# |          1273:  liveins: $eax 
# |          1274:   
# |          1275:  %4:gr32 = COPY $eax 
# |          1276:  %5:fr32 = MOVDI2SSrr %4 
# |          1277:  $xmm0 = COPY %5 
# |          1278:  RET 0, $xmm0 
# |          1279: ... 
# | next:468'3         } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/235941


More information about the llvm-branch-commits mailing list