This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, ARM] Fix parsing of int/float immediates for Neon VMOV instructions


> To use floating-point immediates, you must now explicitly use a decimal
> point or exponent, i.e.
>
>    vmov.f32 dX, #10.0
>
> not
>
>    vmov.f32 dX, #10

This would be ok if we rejected the latter. However IIUC after your patch we 
silently encode the latter as vmov.i32 dX, #10. This is equivalent to 
vmov.f32 dX, #<some denormal or unrepresentable FP value> which is almost 
certainly not what the user intended.

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]