2015-01-06 19:00:21 +01:00
|
|
|
;RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck %s
|
2015-01-27 18:27:15 +01:00
|
|
|
;RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s
|
2014-01-27 08:20:44 +01:00
|
|
|
|
2014-10-01 19:15:17 +02:00
|
|
|
; CHECK-LABEL: {{^}}main:
|
2015-05-12 16:18:16 +02:00
|
|
|
; CHECK: s_mov_b32 m0, 0
|
|
|
|
; CHECK-NOT: s_mov_b32 m0
|
2014-11-05 15:50:53 +01:00
|
|
|
; 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)
|
2014-01-27 08:20:44 +01:00
|
|
|
|
|
|
|
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 }
|