-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
R600/SI: Add intrinsic for S_SENDMSG instruction
Reviewed-by: Tom Stellard <[email protected]> llvm-svn: 200195
- Loading branch information
Michel Danzer
committed
Jan 27, 2014
1 parent
17d4e98
commit 6064f57
Showing
6 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 } |