source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/llvm.SI.sendmsg-m0.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 628 bytes
Line 
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 }
Note: See TracBrowser for help on using the repository browser.