diff options
| author | Duncan Sands <baldrick@free.fr> | 2008-11-17 20:52:38 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2008-11-17 20:52:38 +0000 |
| commit | 7fed65a68d961eef21d4572beab64d047ece5a3e (patch) | |
| tree | e41ca76a165b977c49e637baa022b7be07321829 /test/CodeGen/XCore/sin.ll | |
| parent | e93483d855af7acf831d1d8c3c77ed117f0df4d3 (diff) | |
Add soft float support for a bunch more operations. Original
patch by Richard Osborne, tweaked and extended by your humble
servant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59464 91177308-0d34-0410-b5e6-96231b3b80d8
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 0000000000..41aab67595 --- /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 +} |
