verify x86 generates ud2 for llvm.trap
[oota-llvm.git] / test / CodeGen / X86 / trap.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | grep ud2
2 define i32 @test() noreturn nounwind  {
3 entry:
4         tail call void @llvm.trap( )
5         unreachable
6 }
7
8 declare void @llvm.trap() nounwind 
9