]> granicus.if.org Git - llvm/commit
[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)
commit82afafa944790108314e8565940ffa992d24146b
tree4902cf8f73995d576402976164d97a9f33e3b71f
parentf805a0cc2d8a8a53b81c9ce0afe1c008e9da4872
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300830 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.td
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
test/MC/AArch64/basic-a64-diagnostics.s