Issue 234657
Summary [hexagon] 7zExtract-94abcd: Register not marked live out of predecessor
Labels new issue
Assignees iajbar
Reporter androm3da
    Detected as of Oct 21: `73a434b6fae8dc9fd485c75ed9f0326f7e25854c`.

## Failing invocation

```text
/local/mnt/workspace/bcain-20261021_162412/install/x86_64-linux-gnu/bin/hexagon-linux-musl-clang++ --target=hexagon-unknown-linux-musl --sysroot=/local/mnt/workspace/bcain-20261021_162412/install/x86_64-linux-gnu/target/hexagon-unknown-linux-musl -DNDEBUG -mv68 -mhvx=v68 -mhvx-qfloat -O3 -fvectorize -mmemops -w -Werror=date-time -DBREAK_HANDLER -DUNICODE -D_UNICODE -I/local/mnt/workspace/bcain-20261021_162412/llvm-test-suite/MultiSource/Benchmarks/7zip/C -I/local/mnt/workspace/bcain-20261021_162412/llvm-test-suite/MultiSource/Benchmarks/7zip/CPP/myWindows -I/local/mnt/workspace/bcain-20261021_162412/llvm-test-suite/MultiSource/Benchmarks/7zip/CPP/include_windows -I/local/mnt/workspace/bcain-20261021_162412/llvm-test-suite/MultiSource/Benchmarks/7zip/CPP -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -pthread -Wno-error=narrowing -DBREAK_HANDLER -DUNICODE -D_UNICODE -I/local/mnt/workspace/bcain-20261021_162412/llvm-test-suite/MultiSource/Benchmarks/7zip/C -I/local/mnt/workspace/bcain-20261021_162412/llvm-test-suite/MultiSource/Benchmarks/7zip/CPP/myWindows -I/local/mnt/workspace/bcain-20261021_162412/llvm-test-suite/MultiSource/Benchmarks/7zip/CPP/include_windows -I/local/mnt/workspace/bcain-20261021_162412/llvm-test-suite/MultiSource/Benchmarks/7zip/CPP -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -pthread -MD -MT MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Archive/7z/7zExtract.cpp.o -MF MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Archive/7z/7zExtract.cpp.o.d -o MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Archive/7z/7zExtract.cpp.o -c /local/mnt/workspace/bcain-20261021_162412/llvm-test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Archive/7z/7zExtract.cpp
```

## Verifier output

```text
*** Bad machine code: Register not marked live out of predecessor ***
- function: _ZN8NArchive3N7z8CHandler7ExtractEPKjjiP23IArchiveExtractCallback
- basic block: %bb.80 if.end199
- v. register: %627
- ValNo: 24 (def 12320B)
 live into %bb.91@12320B, not live before 11184d

*** Bad machine code: Register not marked live out of predecessor ***
- function: _ZN8NArchive3N7z8CHandler7ExtractEPKjjiP23IArchiveExtractCallback
- basic block: %bb.89 if.then249
- v. register: %627
- ValNo: 24 (def 12320B)
 live into %bb.91@12320B, not live before 12160d

*** Bad machine code: Register not marked live out of predecessor ***
- function: _ZN8NArchive3N7z8CHandler7ExtractEPKjjiP23IArchiveExtractCallback
- basic block: %bb.86 if.then230
- v. register: %627
- ValNo: 24 (def 12320B)
 live into %bb.91@12320B, not live before 11792d

*** Bad machine code: Register not marked live out of predecessor ***
- function: _ZN8NArchive3N7z8CHandler7ExtractEPKjjiP23IArchiveExtractCallback
- basic block: %bb.84 if.then216
- v. register: %627
- ValNo: 24 (def 12320B)
 live into %bb.91@12320B, not live before 11552d

fatal error: error in backend: Found 4 machine code errors.
```

## Stack trace

```text
0. Program arguments: hexagon-linux-musl-clang++ --target=hexagon-unknown-linux-musl ... 7zExtract.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '.../7zExtract.cpp'.
4. Running pass 'Verify generated machine code' on function '@_ZN8NArchive3N7z8CHandler7ExtractEPKjjiP23IArchiveExtractCallback'
#0 llvm::sys::PrintStackTrace
#1 llvm::sys::RunSignalHandlers
#2 llvm::sys::CleanupOnSignal
#3 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash
#4 llvm::CrashRecoveryContext::HandleExit
#5 llvm::sys::Process::Exit
#6 cc1 fatal-error handler
#7 llvm::report_fatal_error
#8 llvm::initializeMachineVerifierLegacyPassPass
#9 (anonymous namespace)::MachineVerifierLegacyPass::runOnMachineFunction
#10 llvm::MachineFunctionPass::runOnFunction
#11 llvm::FPPassManager::runOnFunction
#12 llvm::FPPassManager::runOnModule
#13 llvm::legacy::PassManagerImpl::run
#14 llvm::runCodeGenPipeline
#15 (anonymous namespace)::EmitAssemblyHelper::emitAssembly
#16 clang::emitBackendOutput
#17 clang::BackendConsumer::HandleTranslationUnit
#18 clang::ParseAST
#19 clang::FrontendAction::Execute
#20 clang::CompilerInstance::ExecuteAction
#21 clang::ExecuteCompilerInvocation
#22 cc1_main
#23 ExecuteCC1Tool
#24 llvm::function_ref callback
#25 llvm::CrashRecoveryContext::RunSafely
#26 clang::driver::CC1Command::Execute
#27 clang::driver::Compilation::ExecuteCommand
#28 clang::driver::Compilation::ExecuteJobs
#29 clang::driver::Driver::ExecuteCompilation
#30 clang_main
#31 main
#32 libc.so.6
#33 __libc_start_main
#34 _start
```

Preprocessed source:
[7zExtract-94abcd-clang-latest.ii.txt](https://github.com/user-attachments/files/33827325/7zExtract-94abcd-clang-latest.ii.txt)

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to