.syntax unified - VCMP immediate still requires #
Bug #1641333 reported by
Dan Lewis
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The assembler directive, ".syntax unified" allows immediate constants to be written without a leading "#". However, I've found one exception:
VCMP.F32 S0,0.0
which causes a syntax error, while adding the "#" eliminates the error:
VCMP.F32 S0,#0.0
This apparently does not affect ALL of the floating-point instructions, since the VMOV immediates work fine without the leading "#":
VMOV S0,0.0
Changed in gcc-arm-embedded: | |
status: | Invalid → New |
Changed in gcc-arm-embedded: | |
status: | New → Fix Committed |
milestone: | none → 6-2017-q1-update |
Changed in gcc-arm-embedded: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Dan,
The # sign is mandatory for immediate constants. The fact that the assembler is more lax in some cases is a bug and should not be relied upon.
Best regards.