Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
NEON vdiv.f32 syntax
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
8 replies
Subscribers
127 subscribers
Views
6386 views
Users
0 members are here
Related
NEON vdiv.f32 syntax
Offline
Carl van Heezik
over 7 years ago
Note: This was originally posted on 17th April 2012 at http://forums.arm.com
I am (re)coding a 3D math library with inline NEON assembly for iOS using the Apple LLVM compiler 3.1.
I get an error message on the following instruction:
[color="#000000"] "vdiv.f32 q0, q1, q2 \n\t" [/color]
VFP single or double precision register expected -- `vdiv.f32 q0,q1,q2'
According to the 'Assembler Reference' page 4-76 you should specify a single precision register. The following code works:
[color="#000000"] "vdiv.f32 s0, s4, s8 \n\t" [/color]
"vdiv.f32 s1, s5, s9 \n\t"
"vdiv.f32 s2, s6, s10 \n\t"
I am confused because now the divide is not computed in parallel, which was the reason to use inline assembly.
Also the following instructions work as expected:
[color="#000000"] // component wise add[/color]
[color="#000000"] "vadd.f32 q0, q1, q2 \n\t" [/color]
[color="#008311"] // component wise subtract
[color="#000000"] "vsub.f32 q0, q1, q2 \n\t" [/color]
[color="#008311"] // component wise multiply
[color="#000000"] "vmul.f32 q0, q1, q2 \n\t" [/color][/color][/color]
[color="#000000"]
[color="#ce2f24"][color="#000000"]Why do I get an error message on the vdiv and not on the vadd, vsub and vmul? Is this a compiler error?[/color]
[/color][/color]
Parents
Offline
Etienne SOBOLE
over 7 years ago
Note: This was originally posted on 17th April 2012 at
http://forums.arm.com
Did you had a Acorn Archimedes ?
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Etienne SOBOLE
over 7 years ago
Note: This was originally posted on 17th April 2012 at
http://forums.arm.com
Did you had a Acorn Archimedes ?
Cancel
Up
0
Down
Reply
Cancel
Children
No data
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Answered
ubuntu - How to uninstall Arm Development studio and all its requirements
0
Arm Development Studio
5783
views
1
reply
Latest
2 months ago
by
Jonathan Simmonds
Answered
DSTREAM Probe damage - Spare parts?
0
DSTREAM
7996
views
2
replies
Latest
2 months ago
by
SamGKN
Suggested Answer
Optimized ARM version of memcmp
0
6456
views
3
replies
Latest
2 months ago
by
Ronan Synnott
Not Answered
Develop Kotlin apps with OpenCl to run in a Samsung mobile that use Mali G71
0
5722
views
2
replies
Latest
3 months ago
by
ARMStrongssen
Answered
FVP Debug problems for Blinky Example project on Cortex-M4
0
Fixed Virtual Platforms (FVPs)
Debugging
Cortex-M4
6418
views
2
replies
Latest
3 months ago
by
Sagittarius
<
>
View all questions in Arm Development Studio forum