blob: 4271a499c9c5d424481cd3cb3e650a06cb2ef590 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
; 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 }
|