Re: [AArch64] Add support for 16-bit FMOV immediates

2018-07-31 Thread James Greenhalgh
On Wed, Jul 18, 2018 at 12:47:27PM -0500, Richard Sandiford wrote: > aarch64_float_const_representable_p was still returning false for > HFmode, so we wouldn't use 16-bit FMOV immediate. E.g. before the > patch: > > __fp16 foo (void) { return 0x1.1p-3; } > > gave: > >mov w0, 123

[AArch64] Add support for 16-bit FMOV immediates

2018-07-18 Thread Richard Sandiford
aarch64_float_const_representable_p was still returning false for HFmode, so we wouldn't use 16-bit FMOV immediate. E.g. before the patch: __fp16 foo (void) { return 0x1.1p-3; } gave: mov w0, 12352 fmovh0, w0 with -march=armv8.2-a+fp16, whereas now it gives: f