llvm/llvm/test/CodeGen/Mips/GlobalISel/instruction-select/trap.mir

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
--- |

  declare void @llvm.trap()
  define void @f() { ret void }

...
---
name:            f
alignment:       4
legalized:       true
regBankSelected: true
tracksRegLiveness: true
body:             |
  bb.1 (%ir-block.0):
    ; MIPS32-LABEL: name: f
    ; MIPS32: TRAP
    ; MIPS32-NEXT: RetRA
    G_TRAP
    RetRA

...