aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2008-01-09-LongDoubleSin.ll
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-01-10 10:28:30 +0000
committerDuncan Sands <baldrick@free.fr>2008-01-10 10:28:30 +0000
commit007f9847c44ddbe7fd04cba362b4ec0f0f40964b (patch)
treeeb4ae1237ac8fe33c2109bf161a06f04fd0eeef4 /test/CodeGen/X86/2008-01-09-LongDoubleSin.ll
parent8480293f41c11c22762164449e41cd3adb0dd7d8 (diff)
downloadexternal_llvm-007f9847c44ddbe7fd04cba362b4ec0f0f40964b.zip
external_llvm-007f9847c44ddbe7fd04cba362b4ec0f0f40964b.tar.gz
external_llvm-007f9847c44ddbe7fd04cba362b4ec0f0f40964b.tar.bz2
Output sinl for a long double FSIN node, not sin.
Likewise fix up a bunch of other libcalls. While there I remove NEG_F32 and NEG_F64 since they are not used anywhere. This fixes 9 Ada ACATS failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2008-01-09-LongDoubleSin.ll')
-rw-r--r--test/CodeGen/X86/2008-01-09-LongDoubleSin.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-01-09-LongDoubleSin.ll b/test/CodeGen/X86/2008-01-09-LongDoubleSin.ll
new file mode 100644
index 0000000..962d6ec
--- /dev/null
+++ b/test/CodeGen/X86/2008-01-09-LongDoubleSin.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -o - | grep sinl
+
+target triple = "i686-pc-linux-gnu"
+
+define x86_fp80 @f(x86_fp80 %x) nounwind {
+entry:
+ %tmp2 = tail call x86_fp80 @sinl( x86_fp80 %x ) nounwind readonly ; <x86_fp80> [#uses=1]
+ ret x86_fp80 %tmp2
+}
+
+declare x86_fp80 @sinl(x86_fp80) nounwind readonly