mirror of
https://github.com/AxioDL/llvm.git
synced 2026-03-30 11:42:29 -07:00
2e3d9f4dbc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292893 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
329 B
LLVM
15 lines
329 B
LLVM
; RUN: llc -mtriple=amdgcn--amdhsa -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=GCN %s
|
|
|
|
declare void @llvm.trap() #0
|
|
|
|
; GCN-LABEL: {{^}}trap:
|
|
; GCN: v_mov_b32_e32 v0, 1
|
|
; GCN: s_mov_b64 s[0:1], s[4:5]
|
|
; GCN: s_trap 1
|
|
define void @trap() {
|
|
call void @llvm.trap()
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind noreturn }
|