From: Tamar Christina Date: Tue, 1 Aug 2017 09:56:31 +0000 (+0000) Subject: 2017-08-01 Tamar Christina X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35c38fa674ab01152c743f421226f3cbc829cd94;p=gcc.git 2017-08-01 Tamar Christina * config/aarch64/aarch64.c (aarch64_can_const_movi_rtx_p): Move 0 check. From-SVN: r250766 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 10c10c7089c..aba255029a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-08-01 Tamar Christina + + * config/aarch64/aarch64.c + (aarch64_can_const_movi_rtx_p): Move 0 check. + 2017-08-01 Bin Cheng * tree.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Delete. diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 055ebafb830..5a2ad7e9156 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -4787,10 +4787,6 @@ aarch64_can_const_movi_rtx_p (rtx x, machine_mode mode) if (!TARGET_SIMD) return false; - /* We make a general exception for 0. */ - if (aarch64_float_const_zero_rtx_p (x)) - return true; - machine_mode vmode, imode; unsigned HOST_WIDE_INT ival; @@ -4800,6 +4796,10 @@ aarch64_can_const_movi_rtx_p (rtx x, machine_mode mode) if (!aarch64_reinterpret_float_as_int (x, &ival)) return false; + /* We make a general exception for 0. */ + if (aarch64_float_const_zero_rtx_p (x)) + return true; + imode = int_mode_for_mode (mode); } else if (GET_CODE (x) == CONST_INT