diff options
Diffstat (limited to 'test/CodeGen/XCore/getid.ll')
-rw-r--r-- | test/CodeGen/XCore/getid.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/getid.ll b/test/CodeGen/XCore/getid.ll new file mode 100644 index 0000000..ecab65c --- /dev/null +++ b/test/CodeGen/XCore/getid.ll @@ -0,0 +1,8 @@ +; RUN: llc < %s -march=xcore > %t1.s +; RUN: grep "get r11, id" %t1.s | count 1 +declare i32 @llvm.xcore.getid() + +define i32 @test() { + %result = call i32 @llvm.xcore.getid() + ret i32 %result +} |