summaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/getid.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/XCore/getid.ll')
-rw-r--r--test/CodeGen/XCore/getid.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGen/XCore/getid.ll b/test/CodeGen/XCore/getid.ll
index ecab65c0e9..ec46071b54 100644
--- a/test/CodeGen/XCore/getid.ll
+++ b/test/CodeGen/XCore/getid.ll
@@ -1,8 +1,10 @@
-; RUN: llc < %s -march=xcore > %t1.s
-; RUN: grep "get r11, id" %t1.s | count 1
+; RUN: llc < %s -march=xcore | FileCheck %s
declare i32 @llvm.xcore.getid()
define i32 @test() {
+; CHECK: test:
+; CHECK: get r11, id
+; CHECK-NEXT: mov r0, r11
%result = call i32 @llvm.xcore.getid()
ret i32 %result
}