• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2; RUN: llc -march=amdgcn -O0 -stop-after=irtranslator -global-isel -verify-machineinstrs %s -o - | FileCheck %s
3
4declare void @llvm.amdgcn.s.sendmsg(i32 immarg, i32)
5
6define amdgpu_ps void @test_sendmsg(i32 inreg %m0) {
7  ; CHECK-LABEL: name: test_sendmsg
8  ; CHECK: bb.1 (%ir-block.0):
9  ; CHECK:   liveins: $sgpr0
10  ; CHECK:   [[COPY:%[0-9]+]]:_(s32) = COPY $sgpr0
11  ; CHECK:   G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.s.sendmsg), 12, [[COPY]](s32)
12  ; CHECK:   S_ENDPGM 0
13  call void @llvm.amdgcn.s.sendmsg(i32 12, i32 %m0)
14  ret void
15}
16