[llvm] [llvm-mc][AsmParser] Fix Source location for undefined directional labels. (PR #214654)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 7 01:50:34 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 180134 tests passed
* 3637 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/RISCV/inline-asm-mem-constraint.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -verify-machineinstrs -no-integrated-as < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV32I,RV32I-NO-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -verify-machineinstrs -no-integrated-as
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV32I,RV32I-NO-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -verify-machineinstrs -no-integrated-as < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV64I,RV64I-NO-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -verify-machineinstrs -no-integrated-as
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV64I,RV64I-NO-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -code-model=medium -verify-machineinstrs -no-integrated-as < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV32I-MEDIUM,RV32I-MEDIUM-NO-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -code-model=medium -verify-machineinstrs -no-integrated-as
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV32I-MEDIUM,RV32I-MEDIUM-NO-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# note: command had no output on stdout or stderr
# RUN: at line 8
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -code-model=medium -verify-machineinstrs -no-integrated-as < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV64I-MEDIUM,RV64I-MEDIUM-NO-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -code-model=medium -verify-machineinstrs -no-integrated-as
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV64I-MEDIUM,RV64I-MEDIUM-NO-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# note: command had no output on stdout or stderr
# RUN: at line 10
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -code-model=large -verify-machineinstrs -no-integrated-as < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV64I-LARGE,RV64I-LARGE-NO-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -code-model=large -verify-machineinstrs -no-integrated-as
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV64I-LARGE,RV64I-LARGE-NO-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# note: command had no output on stdout or stderr
# RUN: at line 12
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV32I,RV32I-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -verify-machineinstrs
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=RV32I,RV32I-INTEGRATED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll:452:15: error: RV32I-NEXT: expected string not found in input
# | ; RV32I-NEXT: lw zero, %lo(.Ltmp0)(a0)
# | ^
# | <stdin>:126:6: note: scanning from here
# | #APP
# | ^
# | <stdin>:127:2: note: possible intended match here
# | lw zero, %lo(.Ltmp00)(a0)
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll:513:15: error: RV32I-NEXT: expected string not found in input
# | ; RV32I-NEXT: lw zero, %lo(.Ltmp1+4)(a0)
# | ^
# | <stdin>:141:6: note: scanning from here
# | #APP
# | ^
# | <stdin>:142:2: note: possible intended match here
# | lw zero, %lo(.Ltmp10+4)(a0)
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll:574:15: error: RV32I-NEXT: expected string not found in input
# | ; RV32I-NEXT: lw zero, %lo(.Ltmp2+2000)(a0)
# | ^
# | <stdin>:156:6: note: scanning from here
# | #APP
# | ^
# | <stdin>:157:2: note: possible intended match here
# | lw zero, %lo(.Ltmp20+2000)(a0)
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll:2077:15: error: RV32I-NEXT: expected string not found in input
# | ; RV32I-NEXT: lw zero, %lo(.Ltmp3)(a0)
# | ^
# | <stdin>:434:6: note: scanning from here
# | #APP
# | ^
# | <stdin>:435:2: note: possible intended match here
# | lw zero, %lo(.Ltmp30)(a0)
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll:2138:15: error: RV32I-NEXT: expected string not found in input
# | ; RV32I-NEXT: lw zero, %lo(.Ltmp4+4)(a0)
# | ^
# | <stdin>:449:6: note: scanning from here
# | #APP
# | ^
# | <stdin>:450:2: note: possible intended match here
# | lw zero, %lo(.Ltmp40+4)(a0)
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll:2199:15: error: RV32I-NEXT: expected string not found in input
# | ; RV32I-NEXT: lw zero, %lo(.Ltmp5+2000)(a0)
# | ^
# | <stdin>:464:6: note: scanning from here
# | #APP
# | ^
# | <stdin>:465:2: note: possible intended match here
# | lw zero, %lo(.Ltmp50+2000)(a0)
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 121: constraint_m_with_local_1: # @constraint_m_with_local_1
# | 122: # %bb.0: # %entry
# | 123: .Ltmp0: # Block address taken
# | 124: # %bb.1: # %label
# | 125: lui a0, %hi(.Ltmp0)
# | 126: #APP
# | next:452'0 { search range start (exclusive)
# | next:452'1 error: no match found in search range
# | 127: lw zero, %lo(.Ltmp00)(a0)
# | next:452'2 ? possible intended match
# | 128: #NO_APP
# | 129: ret
# | 130: .Lfunc_end9:
# | 131: .size constraint_m_with_local_1, .Lfunc_end9-constraint_m_with_local_1
# | 132: # -- End function
# | 133: .globl constraint_m_with_local_2 # -- Begin function constraint_m_with_local_2
# | 134: .p2align 2
# | 135: .type constraint_m_with_local_2, at function
# | 136: constraint_m_with_local_2: # @constraint_m_with_local_2
# | next:452'3 } search range end (exclusive)
# | 137: # %bb.0: # %entry
# | 138: .Ltmp1: # Block address taken
# | 139: # %bb.1: # %label
# | 140: lui a0, %hi(.Ltmp1+4)
# | 141: #APP
# | next:513'0 { search range start (exclusive)
# | next:513'1 error: no match found in search range
# | 142: lw zero, %lo(.Ltmp10+4)(a0)
# | next:513'2 ? possible intended match
# | 143: #NO_APP
# | 144: ret
# | 145: .Lfunc_end10:
# | 146: .size constraint_m_with_local_2, .Lfunc_end10-constraint_m_with_local_2
# | 147: # -- End function
# | 148: .globl constraint_m_with_local_3 # -- Begin function constraint_m_with_local_3
# | 149: .p2align 2
# | 150: .type constraint_m_with_local_3, at function
# | 151: constraint_m_with_local_3: # @constraint_m_with_local_3
# | next:513'3 } search range end (exclusive)
# | 152: # %bb.0: # %entry
# | 153: .Ltmp2: # Block address taken
# | 154: # %bb.1: # %label
# | 155: lui a0, %hi(.Ltmp2+2000)
# | 156: #APP
# | next:574'0 { search range start (exclusive)
# | next:574'1 error: no match found in search range
# | 157: lw zero, %lo(.Ltmp20+2000)(a0)
# | next:574'2 ? possible intended match
# | 158: #NO_APP
# | 159: ret
# | 160: .Lfunc_end11:
# | 161: .size constraint_m_with_local_3, .Lfunc_end11-constraint_m_with_local_3
# | 162: # -- End function
# | 163: .globl constraint_m_with_multi_operands # -- Begin function constraint_m_with_multi_operands
# | 164: .p2align 2
# | 165: .type constraint_m_with_multi_operands, at function
# | 166: constraint_m_with_multi_operands: # @constraint_m_with_multi_operands
# | next:574'3 } search range end (exclusive)
# | 167: # %bb.0:
# | 168: lui a0, %hi(eg)
# | 169: #APP
# | 170: sw zero, %lo(eg)(a0)
# | 171: sw zero, %lo(eg)(a0)
# | .
# | .
# | .
# | 429: constraint_o_with_local_1: # @constraint_o_with_local_1
# | 430: # %bb.0: # %entry
# | 431: .Ltmp3: # Block address taken
# | 432: # %bb.1: # %label
# | 433: lui a0, %hi(.Ltmp3)
# | 434: #APP
# | next:2077'0 { search range start (exclusive)
# | next:2077'1 error: no match found in search range
# | 435: lw zero, %lo(.Ltmp30)(a0)
# | next:2077'2 ? possible intended match
# | 436: #NO_APP
# | 437: ret
# | 438: .Lfunc_end28:
# | 439: .size constraint_o_with_local_1, .Lfunc_end28-constraint_o_with_local_1
# | 440: # -- End function
# | 441: .globl constraint_o_with_local_2 # -- Begin function constraint_o_with_local_2
# | 442: .p2align 2
# | 443: .type constraint_o_with_local_2, at function
# | 444: constraint_o_with_local_2: # @constraint_o_with_local_2
# | next:2077'3 } search range end (exclusive)
# | 445: # %bb.0: # %entry
# | 446: .Ltmp4: # Block address taken
# | 447: # %bb.1: # %label
# | 448: lui a0, %hi(.Ltmp4+4)
# | 449: #APP
# | next:2138'0 { search range start (exclusive)
# | next:2138'1 error: no match found in search range
# | 450: lw zero, %lo(.Ltmp40+4)(a0)
# | next:2138'2 ? possible intended match
# | 451: #NO_APP
# | 452: ret
# | 453: .Lfunc_end29:
# | 454: .size constraint_o_with_local_2, .Lfunc_end29-constraint_o_with_local_2
# | 455: # -- End function
# | 456: .globl constraint_o_with_local_3 # -- Begin function constraint_o_with_local_3
# | 457: .p2align 2
# | 458: .type constraint_o_with_local_3, at function
# | 459: constraint_o_with_local_3: # @constraint_o_with_local_3
# | next:2138'3 } search range end (exclusive)
# | 460: # %bb.0: # %entry
# | 461: .Ltmp5: # Block address taken
# | 462: # %bb.1: # %label
# | 463: lui a0, %hi(.Ltmp5+2000)
# | 464: #APP
# | next:2199'0 { search range start (exclusive)
# | next:2199'1 error: no match found in search range
# | 465: lw zero, %lo(.Ltmp50+2000)(a0)
# | next:2199'2 ? possible intended match
# | 466: #NO_APP
# | 467: ret
# | 468: .Lfunc_end30:
# | 469: .size constraint_o_with_local_3, .Lfunc_end30-constraint_o_with_local_3
# | 470: # -- End function
# | 471: .globl constraint_A # -- Begin function constraint_A
# | 472: .p2align 2
# | 473: .type constraint_A, at function
# | 474: constraint_A: # @constraint_A
# | next:2199'3 } search range end (exclusive)
# | 475: # %bb.0:
# | 476: #APP
# | 477: sb s0, 0(a0)
# | 478: #NO_APP
# | 479: #APP
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/RISCV/inline-asm-s-constraint.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -relocation-model=static < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-s-constraint.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-s-constraint.ll --check-prefix=RV32
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -relocation-model=static
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-s-constraint.ll --check-prefix=RV32
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-s-constraint.ll:46:14: error: RV32-NEXT: expected string not found in input
# | ; RV32-NEXT: lui a0, %hi(.Ltmp0)
# | ^
# | <stdin>:33:6: note: scanning from here
# | #APP
# | ^
# | <stdin>:34:2: note: possible intended match here
# | lui a0, %hi(.Ltmp00)
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/inline-asm-s-constraint.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 28: .Ltmp0: # Block address taken
# | 29: # %bb.1: # %L1
# | 30: #APP
# | 31: # .Ltmp0
# | 32: #NO_APP
# | 33: #APP
# | next:46'0 { search range start (exclusive)
# | next:46'1 error: no match found in search range
# | 34: lui a0, %hi(.Ltmp00)
# | next:46'2 ? possible intended match
# | 35: addi a0, a0, %lo(.Ltmp00)
# | 36: #NO_APP
# | 37: ret
# | 38: .Lfunc_end1:
# | 39: .size test_label, .Lfunc_end1-test_label
# | 40: .cfi_endproc
# | 41: # -- End function
# | 42: .section ".note.GNU-stack","", at progbits
# | next:46'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/214654
More information about the llvm-commits
mailing list