diff options
author | Michel Danzer <michel.daenzer@amd.com> | 2014-01-27 07:20:44 +0000 |
---|---|---|
committer | Michel Danzer <michel.daenzer@amd.com> | 2014-01-27 07:20:44 +0000 |
commit | b3bfe7f18cb15368f94c105e88682c297576160c (patch) | |
tree | a2db7c559c5616ffd91baa6d6f0987c95efed7f2 /test | |
parent | 650e286dcf39e58a1e9de767354ff0bda4a9a82e (diff) | |
download | llvm-b3bfe7f18cb15368f94c105e88682c297576160c.tar.gz llvm-b3bfe7f18cb15368f94c105e88682c297576160c.tar.bz2 llvm-b3bfe7f18cb15368f94c105e88682c297576160c.tar.xz |
R600/SI: Add intrinsic for S_SENDMSG instruction
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/R600/llvm.SI.sendmsg.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/R600/llvm.SI.sendmsg.ll b/test/CodeGen/R600/llvm.SI.sendmsg.ll new file mode 100644 index 0000000000..581d422b09 --- /dev/null +++ b/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 } |