mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-28 07:05:11 +00:00
863cff46f2
This should select to s_trap, but that requires additonal work to setup and enable the trap handler. For now emit s_endpgm so bugpoint stops getting stuck on the unsupported call to abort. Emit a warning that this will only terminate the wave and not really trap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273062 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
366 B
LLVM
16 lines
366 B
LLVM
; 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 }
|