22; RUN: llc < %s -mtriple=armv7-apple-ios7 -mcpu=cortex-a8 | FileCheck %s --check-prefix=SINCOS
33; RUN: llc < %s -mtriple=armv7-linux-gnu -mcpu=cortex-a8 | FileCheck %s --check-prefix=SINCOS-GNU
44; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a8 | FileCheck %s --check-prefix=SINCOS-GNU
5- ; RUN: llc < %s -mtriple=armv7-linux-android -mcpu=cortex-a8 | FileCheck %s --check-prefix=NOOPT-ANDROID
6- ; RUN: llc < %s -mtriple=armv7-linux-android9 -mcpu=cortex-a8 | FileCheck %s --check-prefix=SINCOS-GNU
5+ ; RUN: llc < %s -mtriple=armv7-linux-android -mcpu=cortex-a8 | FileCheck %s --check-prefix=SINCOS-GNU
76
87; Combine sin / cos into a single call unless they may write errno (as
98; captured by readnone attrbiute, controlled by clang -fmath-errno
@@ -22,10 +21,6 @@ entry:
2221; NOOPT: bl _sinf
2322; NOOPT: bl _cosf
2423
25- ; NOOPT-ANDROID-LABEL: test1:
26- ; NOOPT-ANDROID: bl sinf
27- ; NOOPT-ANDROID: bl cosf
28-
2924 %call = tail call float @sinf (float %x ) readnone
3025 %call1 = tail call float @cosf (float %x ) readnone
3126 %add = fadd float %call , %call1
@@ -44,10 +39,6 @@ entry:
4439; NOOPT: bl _sinf
4540; NOOPT: bl _cosf
4641
47- ; NOOPT-ANDROID-LABEL: test1_fast:
48- ; NOOPT-ANDROID: bl sinf
49- ; NOOPT-ANDROID: bl cosf
50-
5142 %call = tail call fast float @sinf (float %x ) readnone
5243 %call1 = tail call fast float @cosf (float %x ) readnone
5344 %add = fadd float %call , %call1
@@ -68,10 +59,6 @@ entry:
6859; NOOPT: bl _sinf
6960; NOOPT: bl _cosf
7061
71- ; NOOPT-ANDROID-LABEL: test1_errno:
72- ; NOOPT-ANDROID: bl sinf
73- ; NOOPT-ANDROID: bl cosf
74-
7562 %call = tail call float @sinf (float %x )
7663 %call1 = tail call float @cosf (float %x )
7764 %add = fadd float %call , %call1
@@ -90,10 +77,6 @@ entry:
9077; NOOPT: bl _sin
9178; NOOPT: bl _cos
9279
93- ; NOOPT-ANDROID-LABEL: test2:
94- ; NOOPT-ANDROID: bl sin
95- ; NOOPT-ANDROID: bl cos
96-
9780 %call = tail call double @sin (double %x ) readnone
9881 %call1 = tail call double @cos (double %x ) readnone
9982 %add = fadd double %call , %call1
@@ -112,10 +95,6 @@ entry:
11295; NOOPT: bl _sin
11396; NOOPT: bl _cos
11497
115- ; NOOPT-ANDROID-LABEL: test2_fast:
116- ; NOOPT-ANDROID: bl sin
117- ; NOOPT-ANDROID: bl cos
118-
11998 %call = tail call fast double @sin (double %x ) readnone
12099 %call1 = tail call fast double @cos (double %x ) readnone
121100 %add = fadd double %call , %call1
@@ -136,10 +115,6 @@ entry:
136115; NOOPT: bl _sin
137116; NOOPT: bl _cos
138117
139- ; NOOPT-ANDROID-LABEL: test2_errno:
140- ; NOOPT-ANDROID: bl sin
141- ; NOOPT-ANDROID: bl cos
142-
143118 %call = tail call double @sin (double %x )
144119 %call1 = tail call double @cos (double %x )
145120 %add = fadd double %call , %call1
0 commit comments