gcc generates invalid vmov.f64 asm call with -march=armv7-a -mfpu=neon -marm -O3

Bug #900426 reported by Bernhard Rosenkraenzer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
Undecided
Bernhard Rosenkraenzer
Linaro GCC
Fix Released
Undecided
Ramana Radhakrishnan

Bug Description

Building ffmpeg with a current linaro-gcc 4.6 snapshot results in

[bero@matterhorn ffmpeg]$ /opt/android-toolchain-eabi/bin/arm-linux-androideabi-gcc -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fPIC -marm -O3 -o flvenc.o -c flvenc.i
/tmp/ccWYA5Nm.s: Assembler messages:
/tmp/ccWYA5Nm.s:989: Error: garbage following instruction -- `vmov.f64 s16,r3,r3'
/tmp/ccWYA5Nm.s:1052: Error: garbage following instruction -- `vmov.f64 s16,r3,r3'

Looks like the correct asm would be "vmov.f64 s16,r3" (without the second ,r3 - there doesn't seem to be a variant of vmov.f64 that takes 3 parameters).

Related branches

Revision history for this message
Bernhard Rosenkraenzer (berolinux) wrote :
Changed in linaro-android:
status: New → Confirmed
assignee: nobody → Bernhard Rosenkraenzer (berolinux)
Revision history for this message
Bernhard Rosenkraenzer (berolinux) wrote :

Attaching reduced test case

[bero@matterhorn bero]$ arm-linux-androideabi-gcc -msoft-float -march=armv7-a -mfloat-abi=softfp -mfpu=neon -marm -O3 -c -o test.o testcase900426.c
/tmp/ccSZDij0.s: Assembler messages:
/tmp/ccSZDij0.s:25: Error: garbage following instruction -- `vmov.f64 s16,r3,r3'

Changed in linaro-android:
status: Confirmed → Triaged
Revision history for this message
Ramana Radhakrishnan (ramana) wrote :

This is my last commit for vcvt fixed to float . There is an obvious fix for it .

Ramana

Changed in gcc-linaro:
assignee: nobody → Ramana Radhakrishnan (ramana)
status: New → Triaged
Revision history for this message
Ramana Radhakrishnan (ramana) wrote :

I have reverted the offending commit for the 2011.12 release. We will remerge the feature correctly in a later release.

Ramana

Revision history for this message
Michael Hope (michaelh1) wrote :

The updated version of the vcvt patch landed last month.

Changed in linaro-android:
status: Triaged → Fix Released
status: Fix Released → Triaged
Changed in gcc-linaro:
status: Triaged → Fix Released
vishal (vishalbhoj)
Changed in linaro-android:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.