From 934c26326909f953aaa15edb423dd4af6f33c448 Mon Sep 17 00:00:00 2001 From: Chua Zheng Leong Date: Wed, 25 May 2016 13:09:51 +0100 Subject: Only generate VMOV.I64 instructions for loading constant floating point values if this instruction is supported by the currently selected fpu. PR target/2006764 * config/tc-arm.c (move_or_literal_pool): Only generate a VMOV.I64 instruction if supported by the currently selected fpu variant. * testsuite/gas/arm/vfpv3-ldr_immediate.s: Add test of this PR. * testsuite/gas/arm/vfpv3-ldr_immediate.d: Update expected disassembly. --- gas/config/tc-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gas/config/tc-arm.c') diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 50a658b..fe46cc4 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -8000,7 +8000,7 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3) return TRUE; } } - else if (t == CONST_VEC) + else if (t == CONST_VEC && ARM_CPU_HAS_FEATURE (cpu_variant, fpu_neon_ext_v1)) { int op = 0; unsigned immbits = 0; -- cgit v1.1