You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
366 B
16 lines
366 B
4 months ago
|
; 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 }
|