[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / CodeGen / X86 / GlobalISel / x86-select-trap.mir
blobea548c296dcaf63fe435ad523cc1a9296893ffeb
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
4 --- |
5   declare void @llvm.trap() #0
7   define i32 @trap() #0 {
8     tail call void @llvm.trap()
9     unreachable
10   }
12   attributes #0 = { noreturn nounwind }
13   attributes #1 = { nounwind }
15 ...
16 ---
17 name:            trap
18 alignment:       16
19 legalized:       true
20 regBankSelected: true
21 tracksRegLiveness: true
22 body:             |
23   bb.1 (%ir-block.0):
24     ; CHECK-LABEL: name: trap
25     ; CHECK: TRAP
26     G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.trap)
28 ...