AArch64: avoid assertion on illegal types in performFDivCombine.
authorTim Northover <tnorthover@apple.com>
Fri, 26 Aug 2016 18:52:31 +0000 (18:52 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 26 Aug 2016 18:52:31 +0000 (18:52 +0000)
commit85cf564c5168150d306d63f360409cd86f92f04c
treefe87f19a995ae7a4d320c84292a454af9747d384
parent14e0e18d7663ed4b091f9dbe5042701e77700b76
AArch64: avoid assertion on illegal types in performFDivCombine.

In the code to detect fixed-point conversions and make use of AArch64's special
instructions, we weren't prepared for weird types. The fptosi direction got
fixed recently, but not the similar sitofp code.

llvm-svn: 279852
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sitofp-fixed-legal.ll [new file with mode: 0644]