ARM: Workaround for a NEON bug in assembler from binutils 2.18
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>
Sat, 26 Dec 2009 22:27:53 +0000 (00:27 +0200)
committerSiarhei Siamashka <siarhei.siamashka@nokia.com>
Mon, 22 Mar 2010 14:15:18 +0000 (16:15 +0200)
commit5791026e45f79d8f5168e302a498455870363ac6
tree32b48e066e668af9eef35b7372bcb129c2dd9f4e
parent68d8d83223b5a35e25d379c2ee9e2e3a1d242323
ARM: Workaround for a NEON bug in assembler from binutils 2.18

The problem was reported as bug 25534 against pixman in
freedesktop.org bugzila. Link to a patch for binutils:
http://sourceware.org/ml/binutils/2008-03/msg00260.html

For pixman the impact is a build failure when using
binutils 2.18. Versions 2.19 and higer are fine. Still
some distros may be using older versions of binutils and
this is causing problems.

This patch workarounds the problem by replacing a problematic
"vmov a, b" instruction with equivalent "vorr a, b, b". Actually
they even map to the same instruction opcode in the generated
code, so the resulting binary is identical with and without patch.
pixman/pixman-arm-neon-asm.S