• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -mtriple=i386-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
3
4--- |
5  declare void @llvm.trap() #0
6
7  define i32 @trap() #0 {
8    tail call void @llvm.trap()
9    unreachable
10  }
11
12  attributes #0 = { noreturn nounwind }
13  attributes #1 = { nounwind }
14
15...
16---
17name:            trap
18alignment:       16
19legalized:       true
20regBankSelected: true
21tracksRegLiveness: true
22body:             |
23  bb.1 (%ir-block.0):
24    ; CHECK-LABEL: name: trap
25    ; CHECK: TRAP
26    G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.trap)
27
28...
29