Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: Cortex-A5 NEON issue - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cortex-A5 NEON issue Rate Topic: -----

#1 User is offline   Jmartin 

  • Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 02-June 12

Posted 02 June 2012 - 03:31 PM

In attempting to use the NEON core on the Cortex-A5, I've encountered issues with the VST instruction. This seems to be reproducible when using the upper q registers(8-15).

The following code was tested:
vmov.64 q11, 0x1000000001
vadd.i32 q12, q8, q11
vadd.i32 q13, q9, q11
vst4.32 {d24, d25, d26, d27}, [r1]!
vst4.32 {d16, d17, d18, d19}, [r1]!
vst1.32 {d22}, [r1]

r1 points to an address in RAM.

When q8 - q13 registers are used, the value being stored by the vst4.32 are incorrect. When using q0-q4, the values are always correct. When using a combination of q0-q4 with q8-q13, the issue is also present and bad values are being stored. These instructions worked fine on the Cortex-A8 with NEON. Is there a difference here that I'm not understanding? Are there limitations using registers > d16? And I believe it's also true that the Cortex-A5 uses the vfpv4? Which is D32, not vfpv3-D16. Thanks

This post has been edited by Jmartin: 02 June 2012 - 03:34 PM

0

#2 User is offline   g9010086 

  • Member
  • Pip
  • Group: Members.
  • Posts: 3
  • Joined: 10-May 12

Posted 07 June 2012 - 08:47 AM

The Cortex-A5 has a configurable MPE / FPU option, it supports the following:

None
VFPv4-D16
VFPv4 and NEON


The configuration of the Cortex-A5 will be implementation specific, what device are you using?
It may be that you only have the VFPv4-D16 configuration in your implementation.
1

#3 User is offline   g9010086 

  • Member
  • Pip
  • Group: Members.
  • Posts: 3
  • Joined: 10-May 12

Posted 07 June 2012 - 12:39 PM

After re-reading your post I see that if you did not have the VFPv4 + NEON configuration then the code would fault. I assume no faults are generated, but the stored data is corrupt?It would be useful if you could show what exactly is in them registers and the corresponding stored data in memory?

This post has been edited by g9010086: 07 June 2012 - 12:41 PM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic