diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/CodeGen/XCore/sin.ll |
Diffstat (limited to 'test/CodeGen/XCore/sin.ll')
-rw-r--r-- | test/CodeGen/XCore/sin.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/sin.ll b/test/CodeGen/XCore/sin.ll new file mode 100644 index 0000000000000..41aab675953f2 --- /dev/null +++ b/test/CodeGen/XCore/sin.ll @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | llc -march=xcore > %t1.s +; RUN: grep "bl sinf" %t1.s | count 1 +; RUN: grep "bl sin" %t1.s | count 2 +declare double @llvm.sin.f64(double) + +define double @test(double %F) { + %result = call double @llvm.sin.f64(double %F) + ret double %result +} + +declare float @llvm.sin.f32(float) + +define float @testf(float %F) { + %result = call float @llvm.sin.f32(float %F) + ret float %result +} |