[FastISel][AArch64] Use the proper FMOV instruction to materialize a +0.0.
authorJuergen Ributzka <juergen@apple.com>
Wed, 20 Aug 2014 01:10:36 +0000 (01:10 +0000)
committerJuergen Ributzka <juergen@apple.com>
Wed, 20 Aug 2014 01:10:36 +0000 (01:10 +0000)
commit3ef392c4e2710c7f1709090d12e5e351fd4c69e1
tree32b3dca85cab032d2d3ed2d4ff91caa267198cc0
parente0134d95cc14a040592e5d07ff14c4619e50a071
[FastISel][AArch64] Use the proper FMOV instruction to materialize a +0.0.

Use FMOVWSr/FMOVXDr instead of FMOVSr/FMOVDr, which have the proper register
class to be used with the zero register. This makes the MachineInstruction
verifier happy again.

This is related to <rdar://problem/18027157>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216040 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64FastISel.cpp
test/CodeGen/AArch64/arm64-fast-isel-materialize.ll