summaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/cos.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/XCore/cos.ll')
-rw-r--r--test/CodeGen/XCore/cos.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/CodeGen/XCore/cos.ll b/test/CodeGen/XCore/cos.ll
index 8211f85b9b..8bc5e81dba 100644
--- a/test/CodeGen/XCore/cos.ll
+++ b/test/CodeGen/XCore/cos.ll
@@ -1,15 +1,17 @@
-; RUN: llc < %s -march=xcore > %t1.s
-; RUN: grep "bl cosf" %t1.s | count 1
-; RUN: grep "bl cos" %t1.s | count 2
+; RUN: llc < %s -march=xcore | FileCheck %s
declare double @llvm.cos.f64(double)
define double @test(double %F) {
+; CHECK: test:
+; CHECK: bl cos
%result = call double @llvm.cos.f64(double %F)
ret double %result
}
declare float @llvm.cos.f32(float)
+; CHECK: testf:
+; CHECK: bl cosf
define float @testf(float %F) {
%result = call float @llvm.cos.f32(float %F)
ret float %result