[llvm] [Mips] Fix atomic min/max generate mips4 instructions when compiling for mips2 (PR #149983)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 17 02:48:57 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b1` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/137/builds/25679

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/WebAssembly/cfg-stackify-eh.ll' FAILED ********************
Exit Code: -6

Command Output (stdout):
--
# RUN: at line 2
/b/ml-opt-dev-x86-64-b1/build/bin/llc < /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/WebAssembly/cfg-stackify-eh.ll -disable-wasm-fallthrough-return-opt -disable-block-placement -verify-machineinstrs -fast-isel=false -machine-sink-split-probability-threshold=0 -cgp-freq-ratio-to-skip-merge=1000 -wasm-enable-eh -wasm-use-legacy-eh=false -exception-model=wasm -mattr=+exception-handling,bulk-memory | /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/WebAssembly/cfg-stackify-eh.ll
# executed command: /b/ml-opt-dev-x86-64-b1/build/bin/llc -disable-wasm-fallthrough-return-opt -disable-block-placement -verify-machineinstrs -fast-isel=false -machine-sink-split-probability-threshold=0 -cgp-freq-ratio-to-skip-merge=1000 -wasm-enable-eh -wasm-use-legacy-eh=false -exception-model=wasm -mattr=+exception-handling,bulk-memory
# executed command: /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/WebAssembly/cfg-stackify-eh.ll
# RUN: at line 3
/b/ml-opt-dev-x86-64-b1/build/bin/llc < /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/WebAssembly/cfg-stackify-eh.ll -disable-wasm-fallthrough-return-opt -disable-block-placement -verify-machineinstrs -fast-isel=false -machine-sink-split-probability-threshold=0 -cgp-freq-ratio-to-skip-merge=1000 -wasm-enable-eh -wasm-use-legacy-eh=false -exception-model=wasm -mattr=+exception-handling,bulk-memory
# executed command: /b/ml-opt-dev-x86-64-b1/build/bin/llc -disable-wasm-fallthrough-return-opt -disable-block-placement -verify-machineinstrs -fast-isel=false -machine-sink-split-probability-threshold=0 -cgp-freq-ratio-to-skip-merge=1000 -wasm-enable-eh -wasm-use-legacy-eh=false -exception-model=wasm -mattr=+exception-handling,bulk-memory
# .---command stderr------------
# | llc: /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Support/Casting.h:662: decltype(auto) llvm::dyn_cast(From *) [To = llvm::Instruction, From = llvm::User]: Assertion `detail::isPresent(Val) && "dyn_cast on a non-existent value"' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: /b/ml-opt-dev-x86-64-b1/build/bin/llc -disable-wasm-fallthrough-return-opt -disable-block-placement -verify-machineinstrs -fast-isel=false -machine-sink-split-probability-threshold=0 -cgp-freq-ratio-to-skip-merge=1000 -wasm-enable-eh -wasm-use-legacy-eh=false -exception-model=wasm -mattr=+exception-handling,bulk-memory
# | 1.	Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'Windows exception handling preparation' on function '@exception_grouping_2'
# |  #0 0x00005577b319ead8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/b/ml-opt-dev-x86-64-b1/build/bin/llc+0x7c5fad8)
# |  #1 0x00005577b319c1f5 llvm::sys::RunSignalHandlers() (/b/ml-opt-dev-x86-64-b1/build/bin/llc+0x7c5d1f5)
# |  #2 0x00005577b319f851 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
# |  #3 0x00007fbf4f65a050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
# |  #4 0x00007fbf4f6a8eec (/lib/x86_64-linux-gnu/libc.so.6+0x8aeec)
# |  #5 0x00007fbf4f659fb2 raise (/lib/x86_64-linux-gnu/libc.so.6+0x3bfb2)
# |  #6 0x00007fbf4f644472 abort (/lib/x86_64-linux-gnu/libc.so.6+0x26472)
# |  #7 0x00007fbf4f644395 (/lib/x86_64-linux-gnu/libc.so.6+0x26395)
# |  #8 0x00007fbf4f652ec2 (/lib/x86_64-linux-gnu/libc.so.6+0x34ec2)
# |  #9 0x00005577b31df5c5 llvm::detachDeadBlocks(llvm::ArrayRef<llvm::BasicBlock*>, llvm::SmallVectorImpl<llvm::cfg::Update<llvm::BasicBlock*>>*, bool) (/b/ml-opt-dev-x86-64-b1/build/bin/llc+0x7ca05c5)
# | #10 0x00005577b31dfdd4 llvm::DeleteDeadBlocks(llvm::ArrayRef<llvm::BasicBlock*>, llvm::DomTreeUpdater*, bool) (/b/ml-opt-dev-x86-64-b1/build/bin/llc+0x7ca0dd4)
# | #11 0x00005577b3262565 llvm::removeUnreachableBlocks(llvm::Function&, llvm::DomTreeUpdater*, llvm::MemorySSAUpdater*) (/b/ml-opt-dev-x86-64-b1/build/bin/llc+0x7d23565)
# | #12 0x00005577b2567e23 (anonymous namespace)::WinEHPrepareImpl::prepareExplicitEH(llvm::Function&) WinEHPrepare.cpp:0:0
# | #13 0x00005577b2567de5 (anonymous namespace)::WinEHPrepare::runOnFunction(llvm::Function&) WinEHPrepare.cpp:0:0
# | #14 0x00005577b27411f5 llvm::FPPassManager::runOnFunction(llvm::Function&) (/b/ml-opt-dev-x86-64-b1/build/bin/llc+0x72021f5)
# | #15 0x00005577b2749072 llvm::FPPassManager::runOnModule(llvm::Module&) (/b/ml-opt-dev-x86-64-b1/build/bin/llc+0x720a072)
# | #16 0x00005577b2741c66 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/b/ml-opt-dev-x86-64-b1/build/bin/llc+0x7202c66)
# | #17 0x00005577b01817ee compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
# | #18 0x00005577b017eded main (/b/ml-opt-dev-x86-64-b1/build/bin/llc+0x4c3fded)
# | #19 0x00007fbf4f64524a (/lib/x86_64-linux-gnu/libc.so.6+0x2724a)
# | #20 0x00007fbf4f645305 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27305)
# | #21 0x00005577b017ad61 _start (/b/ml-opt-dev-x86-64-b1/build/bin/llc+0x4c3bd61)
# `-----------------------------
# error: command failed with exit status: -6

--

********************


```

</details>

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


More information about the llvm-commits mailing list