1;RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck --check-prefix=SI --check-prefix=BOTH %s
2;RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck --check-prefix=VI --check-prefix=BOTH %s
3
4; BOTH-LABEL: {{^}}main:
5; BOTH: s_mov_b32 m0, s0
6; VI-NEXT: s_nop 0
7; BOTH-NEXT: s_sendmsg Gs_done(nop)
8; BOTH-NEXT: s_endpgm
9
10define void @main(i32 inreg %a) #0 {
11main_body:
12  call void @llvm.SI.sendmsg(i32 3, i32 %a)
13  ret void
14}
15
16; Function Attrs: nounwind
17declare void @llvm.SI.sendmsg(i32, i32) #1
18
19attributes #0 = { "ShaderType"="2" "unsafe-fp-math"="true" }
20attributes #1 = { nounwind }
21