xref: /llvm-project/llvm/test/CodeGen/XCore/trap.ll (revision f1987c74ee5637ec248675a9a7070654167a5260)
1; RUN: llc < %s -mtriple=xcore | FileCheck %s
2define i32 @test() noreturn nounwind  {
3entry:
4; CHECK-LABEL: test:
5; CHECK: ldc
6; CHECK: ecallf
7	tail call void @llvm.trap( )
8	unreachable
9}
10
11declare void @llvm.trap() nounwind
12
13