1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00
llvm-mirror/test/CodeGen/AMDGPU/trap.ll

16 lines
366 B
LLVM
Raw Normal View History

; RUN: llc -march=amdgcn -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=GCN %s
; GCN: warning: <unknown>:0:0: in function trap void (): trap handler not supported
declare void @llvm.trap() #0
; GCN-LABEL: {{^}}trap:
; GCN: s_endpgm
; GCN-NEXT: s_endpgm
define void @trap() {
call void @llvm.trap()
ret void
}
attributes #0 = { nounwind noreturn }