[AArch64] FMINNAN/FMAXNAN on f16 is not legal.
authorJames Molloy <james.molloy@arm.com>
Fri, 14 Aug 2015 09:08:50 +0000 (09:08 +0000)
committerJames Molloy <james.molloy@arm.com>
Fri, 14 Aug 2015 09:08:50 +0000 (09:08 +0000)
commitf8e7c14a0b86ae1cbc801fc6d46498b881f1c524
treedb6c8ead83e73b5e1c510c57ea3972a8fdf6788b
parent0d2d02d317247c811e79ad80a0c027ea1d867c1a
[AArch64] FMINNAN/FMAXNAN on f16 is not legal.

Spotted by Ahmed - in r244594 I inadvertently marked f16 min/max as legal.

I've reverted it here, and marked min/max on scalar f16's as promote. I've also added a testcase. The test just checks that the compiler doesn't fall over - it doesn't create fmin nodes for f16 yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245035 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/arm64-fmax.ll