mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
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
This commit is contained in:
21
test/CodeGen/R600/llvm.SI.sendmsg.ll
Normal file
21
test/CodeGen/R600/llvm.SI.sendmsg.ll
Normal file
@ -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 }
|
Reference in New Issue
Block a user