From 82600dfc0706b072408737916e99d5b879cdba19 Mon Sep 17 00:00:00 2001 From: Prakhar Bahuguna Date: Fri, 12 May 2017 14:16:52 +0000 Subject: [PATCH] [ARM] Add missing TARGET_32BIT conditional to movsi 2017-05-12 Prakhar Bahuguna gcc/ * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the TARGET_HAVE_MOVT conditional. (movt splitter): Likewise. From-SVN: r247971 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm.md | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5f5bd2a7445..aa408f1ee75 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-05-12 Prakhar Bahuguna + + * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the + TARGET_HAVE_MOVT conditional. + (movt splitter): Likewise. + 2017-05-12 Richard Biener * tree-ssa-sccvn.h (has_VN_INFO): Declare. diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 4a2b623e528..e6e1ac54a85 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -5969,7 +5969,7 @@ { rtx base, offset, tmp; - if (TARGET_HAVE_MOVT) + if (TARGET_32BIT || TARGET_HAVE_MOVT) { /* Everything except mem = const or mem = mem can be done easily. */ if (MEM_P (operands[0])) @@ -6093,7 +6093,7 @@ (define_split [(set (match_operand:SI 0 "arm_general_register_operand" "") (match_operand:SI 1 "const_int_operand" ""))] - "TARGET_HAVE_MOVT + "(TARGET_32BIT || TARGET_HAVE_MOVT) && (!(const_ok_for_arm (INTVAL (operands[1])) || const_ok_for_arm (~INTVAL (operands[1]))))" [(clobber (const_int 0))] -- 2.30.2