Add checkevent intrinsic to check if any resources owned by the current thread
[oota-llvm.git] / test / CodeGen / XCore / getid.ll
1 ; RUN: llc < %s -march=xcore > %t1.s
2 ; RUN: grep "get r11, id" %t1.s | count 1 
3 declare i32 @llvm.xcore.getid()
4
5 define i32 @test() {
6         %result = call i32 @llvm.xcore.getid()
7         ret i32 %result
8 }