[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / CodeGen / AMDGPU / GlobalISel / inst-select-amdgcn.s.sendmsg.mir
blob093109f924fce1c77f8d649c3dc50183bcca35fb
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefix=GCN
4 ---
5 name:            test_sendmsg
6 legalized:       true
7 regBankSelected: true
8 tracksRegLiveness: true
10 body:             |
11   bb.0:
12     liveins: $sgpr0
14     ; GCN-LABEL: name: test_sendmsg
15     ; GCN: liveins: $sgpr0
16     ; GCN: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
17     ; GCN: $m0 = COPY [[COPY]]
18     ; GCN: S_SENDMSG 1, implicit $exec, implicit $m0
19     ; GCN: S_ENDPGM 0
20     %0:sgpr(s32) = COPY $sgpr0
21     G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.s.sendmsg), 1, %0(s32)
22     S_ENDPGM 0
24 ...