summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2013-04-10 01:26:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2013-04-10 01:26:07 +0000
commit3a6b7d38a7c41189b75f0d40a92700aa42cc6a91 (patch)
tree69a0b432d3637847473039b87aba76d7b5a923c7 /test/CodeGen/X86
parent5ed028385c39f3de4570fa6f77c734d968d26902 (diff)
downloadllvm-3a6b7d38a7c41189b75f0d40a92700aa42cc6a91.tar.gz
llvm-3a6b7d38a7c41189b75f0d40a92700aa42cc6a91.tar.bz2
llvm-3a6b7d38a7c41189b75f0d40a92700aa42cc6a91.tar.xz
__sincosf_stret returns sinf / cosf in bits 0:31 and 32:63 of xmm0, not in
xmm0 / xmm1. rdar://13599493 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/sincos-opt.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/X86/sincos-opt.ll b/test/CodeGen/X86/sincos-opt.ll
index f364d1fc2d..333c4663eb 100644
--- a/test/CodeGen/X86/sincos-opt.ll
+++ b/test/CodeGen/X86/sincos-opt.ll
@@ -4,6 +4,7 @@
; Combine sin / cos into a single call.
; rdar://13087969
+; rdar://13599493
define float @test1(float %x) nounwind {
entry:
@@ -14,7 +15,8 @@ entry:
; OSX_SINCOS: test1:
; OSX_SINCOS: callq ___sincosf_stret
-; OSX_SINCOS: addss %xmm1, %xmm0
+; OSX_SINCOS: pshufd $1, %xmm0, %xmm1
+; OSX_SINCOS: addss %xmm0, %xmm1
; OSX_NOOPT: test1
; OSX_NOOPT: callq _cosf