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
3
4---
5name:            test_sendmsg
6legalized:       true
7regBankSelected: true
8tracksRegLiveness: true
9
10body:             |
11  bb.0:
12    liveins: $sgpr0
13
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
23
24...
25