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 | f046b50ecdd64ed95743df69a2178dfcb0addf82 (patch) | |
tree | 13bace0b0fc501022e77231d3985db8d6094a9f6 /llvm/test/CodeGen/XCore/cos.ll | |
parent | 0f492d1a11bbfc014f61b7187988fa6f17505fb0 (diff) | |
download | bcm5719-llvm-f046b50ecdd64ed95743df69a2178dfcb0addf82.tar.gz bcm5719-llvm-f046b50ecdd64ed95743df69a2178dfcb0addf82.zip |
Add soft float support for a bunch more operations. Original
patch by Richard Osborne, tweaked and extended by your humble
servant.
llvm-svn: 59464
Diffstat (limited to 'llvm/test/CodeGen/XCore/cos.ll')
-rw-r--r-- | llvm/test/CodeGen/XCore/cos.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/XCore/cos.ll b/llvm/test/CodeGen/XCore/cos.ll new file mode 100644 index 00000000000..334f0d50561 --- /dev/null +++ b/llvm/test/CodeGen/XCore/cos.ll @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | llc -march=xcore > %t1.s +; RUN: grep "bl cosf" %t1.s | count 1 +; RUN: grep "bl cos" %t1.s | count 2 +declare double @llvm.cos.f64(double) + +define double @test(double %F) { + %result = call double @llvm.cos.f64(double %F) + ret double %result +} + +declare float @llvm.cos.f32(float) + +define float @testf(float %F) { + %result = call float @llvm.cos.f32(float %F) + ret float %result +} |