blob: e0a79482ddc44317c6d94f3c49485021d76bdc0e [file] [log] [blame]
Marek Olsak1bd24632015-02-03 17:37:52 +00001;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
Nicolai Haehnledf3a20c2016-04-06 19:40:20 +000010define amdgpu_gs void @main(i32 inreg %a) #0 {
Marek Olsak1bd24632015-02-03 17:37:52 +000011main_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
Nicolai Haehnledf3a20c2016-04-06 19:40:20 +000019attributes #0 = { "unsafe-fp-math"="true" }
Marek Olsak1bd24632015-02-03 17:37:52 +000020attributes #1 = { nounwind }