yingopq b96c5df04e
[Mips] Add support of MipsInstrInfo::getNop() (#139863)
Fix compile crash when using __builtin_unreachable. 
Fix #134913.
2025-05-14 19:52:31 +08:00

14 lines
344 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc -mtriple=mipsel-windows-gnu < %s | FileCheck %s -check-prefix=MIPSEL
define void @unreachable() {
; MIPSEL-LABEL: unreachable:
; MIPSEL: # %bb.0: # %entry
; MIPSEL-NEXT: .insn
; MIPSEL-NEXT: nop
entry:
unreachable
}