From: Prakhar Bahuguna Date: Fri, 12 May 2017 14:16:52 +0000 (+0000) Subject: [ARM] Add missing TARGET_32BIT conditional to movsi X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82600dfc0706b072408737916e99d5b879cdba19;p=gcc.git [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 --- 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))]