aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/R600/llvm.SI.sendmsg.ll
blob: 042fc5b8efee04b6ace08acc8cd375b83e83365f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;RUN: llc < %s -march=r600 -mcpu=verde -verify-machineinstrs | FileCheck %s

; CHECK-LABEL: {{^}}main:
; CHECK: s_sendmsg Gs(emit stream 0)
; CHECK: s_sendmsg Gs(cut stream 1)
; CHECK: s_sendmsg Gs(emit-cut stream 2)
; CHECK: s_sendmsg Gs_done(nop)

define void @main() {
main_body:
  call void @llvm.SI.sendmsg(i32 34, i32 0);
  call void @llvm.SI.sendmsg(i32 274, i32 0);
  call void @llvm.SI.sendmsg(i32 562, i32 0);
  call void @llvm.SI.sendmsg(i32 3, i32 0);
  ret void
}

; Function Attrs: nounwind
declare void @llvm.SI.sendmsg(i32, i32) #0

attributes #0 = { nounwind }