mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
953c681473
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239657 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
709 B
LLVM
25 lines
709 B
LLVM
;RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck %s
|
|
;RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s
|
|
|
|
; CHECK-LABEL: {{^}}main:
|
|
; CHECK: s_mov_b32 m0, 0
|
|
; CHECK-NOT: s_mov_b32 m0
|
|
; 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 }
|