aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/XCore/trap.ll
blob: ef0dfd634009767d56acd5ae8953c7278a3df288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llc < %s -march=xcore | FileCheck %s
define i32 @test() noreturn nounwind  {
entry:
; CHECK-LABEL: test:
; CHECK: ldc
; CHECK: ecallf
	tail call void @llvm.trap( )
	unreachable
}

declare void @llvm.trap() nounwind