[llvm] [AArch64][test] Fix test failing on unknown options (PR #139696)

Nuko Y. via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 21:08:26 PDT 2025


yasuna-oribe wrote:

@davemgreen I've just reverted and checked myself and it's not my changes to LLVM that makes it fail; it looks like either the test makes it fail, or it's a bug in LLVM (I don't really know how to read this). Take a look:
```

# After Register Coalescer
********** INTERVALS **********
W28 [16r,16d:1)[64r,64d:0) 0 at 64r 1 at 16r
W28_HI [16r,16d:1)[64r,64d:0) 0 at 64r 1 at 16r
RegMasks:
********** MACHINEINSTRS **********
# Machine code for function foo: NoPHIs, TracksLiveness, TiedOpsRewritten

0B      bb.0 (%ir-block.0):
16B       $w28 = MOVi32imm 238
64B       INLINEASM &"" [sideeffect] [attdialect], $0:[regdef], implicit-def $x28, $1:[reguse], $x28
80B       RET_ReallyLR

# End machine code for function foo.

*** Bad machine code: Defining instruction does not modify register ***
- function:    foo
- basic block: %bb.0  (0x5622b74a1120) [0B;96B)
- instruction: 16B      $w28 = MOVi32imm 238
- liverange:   [16r,16d:1)[64r,64d:0) 0 at 64r 1 at 16r
- regunit:     W28_HI
- ValNo:       1 (def 16r)
LLVM ERROR: Found 1 machine code errors.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: build/bin/llc -mtriple=aarch64-unknown-linux-gnu a.ll
1.      Running pass 'Function Pass Manager' on module 'a.ll'.
2.      Running pass 'Verify generated machine code' on function '@foo'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  libLLVMSupport.so.21.0git 0x00007fa316d335cc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 60
1  libLLVMSupport.so.21.0git 0x00007fa316d33cfc
2  libc.so.6                 0x00007fa316513cd0
3  libc.so.6                 0x00007fa31656d624
4  libc.so.6                 0x00007fa316513ba0 gsignal + 32
5  libc.so.6                 0x00007fa3164fb582 abort + 38
6  libLLVMSupport.so.21.0git 0x00007fa316c49ff4 llvm::report_fatal_error(llvm::Twine const&, bool) + 452
7  libLLVMCodeGen.so.21.0git 0x00007fa3194038d5
8  libLLVMCodeGen.so.21.0git 0x00007fa319404c32
9  libLLVMCodeGen.so.21.0git 0x00007fa3192bdec8 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 952
10 libLLVMCore.so.21.0git    0x00007fa31733c54f llvm::FPPassManager::runOnFunction(llvm::Function&) + 575
11 libLLVMCore.so.21.0git    0x00007fa317342572 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
12 libLLVMCore.so.21.0git    0x00007fa31733ccf7 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1111
13 llc                       0x00005622a7e87c18
14 llc                       0x00005622a7e8529d main + 1245
15 libc.so.6                 0x00007fa3164fd488
16 libc.so.6                 0x00007fa3164fd54c __libc_start_main + 140
17 llc                       0x00005622a7e84c75 _start + 37
Aborted (core dumped)
```

I'll write a test that doesn't make it error for now.

https://github.com/llvm/llvm-project/pull/139696


More information about the llvm-commits mailing list