llvm-for-llvmta/test/CodeGen/Mips/GlobalISel/legalizer/trap.mir

23 lines
500 B
Plaintext
Raw Normal View History

2022-04-25 10:02:23 +02:00
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
--- |
declare void @llvm.trap()
define void @f() { ret void }
...
---
name: f
alignment: 4
body: |
bb.1 (%ir-block.0):
; MIPS32-LABEL: name: f
; MIPS32: TRAP
; MIPS32: RetRA
G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.trap)
RetRA
...