Add support for ISD::TRAP to the XCore backend
[oota-llvm.git] / test / CodeGen / XCore / trap.ll
1 ; RUN: llvm-as < %s | llc -march=xcore > %t1.s
2 ; RUN: grep "ecallf" %t1.s | count 1
3 ; RUN: grep "ldc" %t1.s | count 1
4 define i32 @test() noreturn nounwind  {
5 entry:
6         tail call void @llvm.trap( )
7         unreachable
8 }
9
10 declare void @llvm.trap() nounwind 
11