1;RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck %s 2;RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s 3 4; CHECK-LABEL: {{^}}main: 5; CHECK: s_mov_b32 m0, 0 6; CHECK-NOT: s_mov_b32 m0 7; CHECK: s_sendmsg sendmsg(MSG_GS, GS_OP_EMIT, 0) 8; CHECK: s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 1) 9; CHECK: s_sendmsg sendmsg(MSG_GS, GS_OP_EMIT_CUT, 2) 10; CHECK: s_sendmsg sendmsg(MSG_GS_DONE, GS_OP_NOP) 11 12define void @main() { 13main_body: 14 call void @llvm.SI.sendmsg(i32 34, i32 0); 15 call void @llvm.SI.sendmsg(i32 274, i32 0); 16 call void @llvm.SI.sendmsg(i32 562, i32 0); 17 call void @llvm.SI.sendmsg(i32 3, i32 0); 18 ret void 19} 20 21; Function Attrs: nounwind 22declare void @llvm.SI.sendmsg(i32, i32) #0 23 24attributes #0 = { nounwind } 25