summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorMichel Danzer <michel.daenzer@amd.com>2014-01-27 07:20:44 +0000
committerMichel Danzer <michel.daenzer@amd.com>2014-01-27 07:20:44 +0000
commit6064f57ae8008f207282a5985222ce3f2ad5cc95 (patch)
treec558e6a44614edd2b860c9664c8495dd04d9bb5b /llvm/test/CodeGen
parent17d4e98e7308922d6cbf24a577367dca75d3920e (diff)
downloadbcm5719-llvm-6064f57ae8008f207282a5985222ce3f2ad5cc95.tar.gz
bcm5719-llvm-6064f57ae8008f207282a5985222ce3f2ad5cc95.zip
R600/SI: Add intrinsic for S_SENDMSG instruction
Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 200195
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/R600/llvm.SI.sendmsg.ll21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/R600/llvm.SI.sendmsg.ll b/llvm/test/CodeGen/R600/llvm.SI.sendmsg.ll
new file mode 100644
index 00000000000..581d422b095
--- /dev/null
+++ b/llvm/test/CodeGen/R600/llvm.SI.sendmsg.ll
@@ -0,0 +1,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 }
OpenPOWER on IntegriCloud