blob: 1555cfe39b1eac9a6e55fc812c6f60efdd485db0 [file] [log] [blame]
Matt Arsenault0bb294b2016-06-17 22:27:03 +00001; RUN: llc -march=amdgcn -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=GCN %s
2
3; GCN: warning: <unknown>:0:0: in function trap void (): trap handler not supported
4
5declare void @llvm.trap() #0
6
7; GCN-LABEL: {{^}}trap:
8; GCN: s_endpgm
9; GCN-NEXT: s_endpgm
10define void @trap() {
11 call void @llvm.trap()
12 ret void
13}
14
15attributes #0 = { nounwind noreturn }