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
4 ; BOTH-LABEL: {{^}}main:
5 ; BOTH: s_mov_b32 m0, s0
7 ; BOTH-NEXT: s_sendmsg Gs_done(nop)
10 define void @main(i32 inreg %a) #0 {
12 call void @llvm.SI.sendmsg(i32 3, i32 %a)
16 ; Function Attrs: nounwind
17 declare void @llvm.SI.sendmsg(i32, i32) #1
19 attributes #0 = { "ShaderType"="2" "unsafe-fp-math"="true" }
20 attributes #1 = { nounwind }