Skip to content

Commit

Permalink
Fix c/zaxpyc kernel bug on Cortex-A57.
Browse files Browse the repository at this point in the history
  • Loading branch information
xianyi committed Feb 23, 2016
1 parent 6e7be06 commit 74b0672
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions kernel/arm64/zaxpy.S
Expand Up @@ -147,12 +147,13 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
fmla v4.4s, v3.4s, v17.4s
#endif

#if !defined(CONJ)

fmla v5.4s, v2.4s, v17.4s
#if !defined(CONJ)
fmla v5.4s, v3.4s, v16.4s
#else
fmls v5.4s, v2.4s, v17.4s
fmls v5.4s, v3.4s, v16.4s
#endif
fmla v5.4s, v3.4s, v16.4s

st2 {v4.4s, v5.4s}, [Y], #32
#else // DOUBLE
Expand All @@ -165,12 +166,13 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#else
fmla v4.2d, v3.2d, v17.2d
#endif
#if !defined(CONJ)

fmla v5.2d, v2.2d, v17.2d
#if !defined(CONJ)
fmla v5.2d, v3.2d, v16.2d
#else
fmls v5.2d, v2.2d, v17.2d
fmls v5.2d, v3.2d, v16.2d
#endif
fmla v5.2d, v3.2d, v16.2d

st2 {v4.2d, v5.2d}, [Y], #32

Expand All @@ -183,13 +185,13 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#else
fmla v20.2d, v19.2d, v17.2d
#endif
#if !defined(CONJ)

fmla v21.2d, v18.2d, v17.2d
#if !defined(CONJ)
fmla v21.2d, v19.2d, v16.2d
#else
fmls v21.2d, v18.2d, v17.2d
fmls v21.2d, v19.2d, v16.2d
#endif
fmla v21.2d, v19.2d, v16.2d

st2 {v20.2d, v21.2d}, [Y], #32
#endif
PRFM PLDL1KEEP, [X, #512]
Expand Down

0 comments on commit 74b0672

Please sign in to comment.