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)
commit5500c0ff898bd5ca2ddfe0d78dc965f4a8366487
treedaa6eee55131767bf35c80bb7871096dbab76f1b
parent3bf14cebee461f4f6be4164f366a301e4f789f81
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.

llvm-svn: 189009
llvm/lib/Target/ARM/ARMInstrNEON.td
llvm/test/MC/ARM/neon-convert-encoding.s