Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/AMDGPU/llvm.SI.sendmsg.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
1 ;RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck %s | |
2 ;RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s | |
3 | |
4 ; CHECK-LABEL: {{^}}main: | |
5 ; CHECK: s_mov_b32 m0, 0 | |
6 ; CHECK-NOT: s_mov_b32 m0 | |
7 ; CHECK: s_sendmsg Gs(emit stream 0) | |
8 ; CHECK: s_sendmsg Gs(cut stream 1) | |
9 ; CHECK: s_sendmsg Gs(emit-cut stream 2) | |
10 ; CHECK: s_sendmsg Gs_done(nop) | |
11 | |
12 define void @main() { | |
13 main_body: | |
14 call void @llvm.SI.sendmsg(i32 34, i32 0); | |
15 call void @llvm.SI.sendmsg(i32 274, i32 0); | |
16 call void @llvm.SI.sendmsg(i32 562, i32 0); | |
17 call void @llvm.SI.sendmsg(i32 3, i32 0); | |
18 ret void | |
19 } | |
20 | |
21 ; Function Attrs: nounwind | |
22 declare void @llvm.SI.sendmsg(i32, i32) #0 | |
23 | |
24 attributes #0 = { nounwind } |