[AArch64] Fix handling of zero immediate in fmov instructions
authorJohn Brawn <john.brawn@arm.com>
Thu, 20 Apr 2017 10:13:54 +0000 (10:13 +0000)
committerJohn Brawn <john.brawn@arm.com>
Thu, 20 Apr 2017 10:13:54 +0000 (10:13 +0000)
commit5ca5daa6b936bc457b928f3f3d47c7def8b5f706
tree65158e16620dce1bb045bdd7b8022bb01b8f3c3d
parente93970c55d411a7656eb4f6009d7ae7d4adc3bcd
[AArch64] Fix handling of zero immediate in fmov instructions

Currently fmov #0 with a vector destination is handle incorrectly and results in
fmov #-1.9375 being emitted but should instead give an error. This is due to the
way we cope with fmov #0 with a scalar destination being an alias of fmov zr, so
fix this by actually doing it through an alias.

Differential Revision: https://reviews.llvm.org/D31949

llvm-svn: 300830
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/test/MC/AArch64/basic-a64-diagnostics.s