OSDN Git Service

Fix ARM vcvt encoding when the number of fractional bits is zero.
authorMihai Popa <mihail.popa@gmail.com>
Thu, 22 Aug 2013 13:16:07 +0000 (13:16 +0000)
committerMihai Popa <mihail.popa@gmail.com>
Thu, 22 Aug 2013 13:16:07 +0000 (13:16 +0000)
commit5f268555b967fccbfab6e7b69305d74006116927
tree2f8dc92f20a169e3a925eeb26645018cb1f74060
parent474be0d0f83eb6543bd4091946b40bb4967a3c11
Fix ARM vcvt encoding when the number of fractional bits is zero.

The instruction to convert between floating point and fixed point representations
takes an immediate operand for the number of fractional bits of the fixed point
value. ARMARM specifies that when that number of bits is zero, the assembler
should encode floating point/integer conversion instructions.

This patch adds the necessary instruction aliases to achieve this behaviour.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189009 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrNEON.td
test/MC/ARM/neon-convert-encoding.s