diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-04-03 07:06:13 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-04-03 07:06:13 +0000 |
| commit | b642eb5dbccbec4e34c26487ca1b84e5a673ba64 (patch) | |
| tree | e430620acb1ee5c742af19c9436444e53d2de6cb /test/CodeGen | |
| parent | 3b8ad82b39b945c7cb2611526ca64a53fbd05ae3 (diff) | |
| download | llvm-b642eb5dbccbec4e34c26487ca1b84e5a673ba64.tar.gz llvm-b642eb5dbccbec4e34c26487ca1b84e5a673ba64.tar.bz2 llvm-b642eb5dbccbec4e34c26487ca1b84e5a673ba64.tar.xz | |
ARM64: don't generate __sincos_stret calls unless on MachO
This should fix PR19314.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/ARM64/sincos.ll | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/test/CodeGen/ARM64/sincos.ll b/test/CodeGen/ARM64/sincos.ll index da14f533be..06157b2580 100644 --- a/test/CodeGen/ARM64/sincos.ll +++ b/test/CodeGen/ARM64/sincos.ll @@ -1,13 +1,19 @@ -; RUN: llc < %s -mtriple=arm64-apple-ios7 | FileCheck %s +; RUN: llc < %s -mtriple=arm64-apple-ios7 | FileCheck %s --check-prefix CHECK-IOS +; RUN: llc < %s -mtriple=arm64-linux-gnu | FileCheck %s --check-prefix CHECK-LINUX ; Combine sin / cos into a single call. ; rdar://12856873 define float @test1(float %x) nounwind { entry: -; CHECK-LABEL: test1: -; CHECK: bl ___sincosf_stret -; CHECK: fadd s0, s0, s1 +; CHECK-IOS-LABEL: test1: +; CHECK-IOS: bl ___sincosf_stret +; CHECK-IOS: fadd s0, s0, s1 + +; CHECK-LINUX-LABEL: test1: +; CHECK-LINUX: bl sinf +; CHECK-LINUX: bl cosf + %call = tail call float @sinf(float %x) nounwind readnone %call1 = tail call float @cosf(float %x) nounwind readnone %add = fadd float %call, %call1 @@ -16,9 +22,14 @@ entry: define double @test2(double %x) nounwind { entry: -; CHECK-LABEL: test2: -; CHECK: bl ___sincos_stret -; CHECK: fadd d0, d0, d1 +; CHECK-IOS-LABEL: test2: +; CHECK-IOS: bl ___sincos_stret +; CHECK-IOS: fadd d0, d0, d1 + +; CHECK-LINUX-LABEL: test2: +; CHECK-LINUX: bl sin +; CHECK-LINUX: bl cos + %call = tail call double @sin(double %x) nounwind readnone %call1 = tail call double @cos(double %x) nounwind readnone %add = fadd double %call, %call1 |
