summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/pr13577.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/pr13577.ll')
-rw-r--r--test/CodeGen/X86/pr13577.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr13577.ll b/test/CodeGen/X86/pr13577.ll
new file mode 100644
index 0000000000..faaec262cb
--- /dev/null
+++ b/test/CodeGen/X86/pr13577.ll
@@ -0,0 +1,8 @@
+; RUN: llc < %s -march=x86-64
+
+define x86_fp80 @foo(x86_fp80 %a) {
+ %1 = tail call x86_fp80 @copysignl(x86_fp80 0xK7FFF8000000000000000, x86_fp80 %a) nounwind readnone
+ ret x86_fp80 %1
+}
+
+declare x86_fp80 @copysignl(x86_fp80, x86_fp80) nounwind readnone