constraint "w" produces access to single precission registers

Bug #1856486 reported by Peter Hintenaus on 2019-12-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain

Bug Description

when using the following inline assembly

static inline double _VSQRT(double op){
   double res;
   asm volatile("vsqrt.f64 %[result], %[value]" : [result] "=w"(res) : [value]"w"(op));
   return res;

the assembler complains
Error: VFP single or double precision register expected -- `vsqrt.f64 f14,f14'

The single precision version (using constraint "t") works.

I'm using
GNU Tools for Arm Embedded Processors 9-2019q4-major Release
as provided by ARM.

Thank you,
Peter Hintenaus

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers