[AArch64] Fix fp16 test failures after PR82964 fix
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 18 Jan 2018 16:37:44 +0000 (16:37 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Thu, 18 Jan 2018 16:37:44 +0000 (16:37 +0000)
commit9f7b87cad7c110dc656b4f201782819633dae2cf
treeb5011eac594a416a48bdd0e1eefb62d14e1f57be
parentcbb4e4ca11e22ae88ed3ef91566efc379636fc03
[AArch64] Fix fp16 test failures after PR82964 fix

This fixes test failures in gcc.target/aarch64/f16_mov_immediate_*.c
after fixing PR82964.  The check for a scalar floating point constant
didn't include 16-bit floating point modes, so use GET_MODE_CLASS
instead.

    gcc/
PR target/82964
* config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
Use GET_MODE_CLASS for scalar floating point.

From-SVN: r256854
gcc/ChangeLog
gcc/config/aarch64/aarch64.c