re PR target/84711 (AArch32 big-endian fails when taking subreg of a vector mode...
authorTamar Christina <tamar.christina@arm.com>
Mon, 19 Mar 2018 09:14:25 +0000 (09:14 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Mon, 19 Mar 2018 09:14:25 +0000 (09:14 +0000)
gcc/
2018-03-19  Tamar Christina  <tamar.christina@arm.com>

PR target/84711
* config/arm/arm.c (arm_can_change_mode_class): revert r258554.

gcc/testsuite/
2018-03-19  Tamar Christina  <tamar.christina@arm.com>

PR target/84711
* gcc.target/arm/big-endian-subreg.c: Delete.

From-SVN: r258642

gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/big-endian-subreg.c [deleted file]

index 9aab6e606d4f86435edc6d67436ecc67c3e4362e..9e1ccaf80272567c75a10cf39ee65c27196daeca 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-19  Tamar Christina  <tamar.christina@arm.com>
+
+       PR target/84711
+       * config/arm/arm.c (arm_can_change_mode_class): revert r258554.
+
 2018-03-18  Martin Liska  <mliska@suse.cz>
 
        PR rtl-optimization/84635
index 703632240822e762a906570964b949c783df56f3..90d62e699bce9594879be2e3016c9b36c7e064c8 100644 (file)
@@ -31508,8 +31508,8 @@ arm_can_change_mode_class (machine_mode from, machine_mode to,
 {
   if (TARGET_BIG_END
       && !(GET_MODE_SIZE (from) == 16 && GET_MODE_SIZE (to) == 8)
-      && (GET_MODE_UNIT_SIZE (from) > UNITS_PER_WORD
-         || GET_MODE_UNIT_SIZE (to) > UNITS_PER_WORD)
+      && (GET_MODE_SIZE (from) > UNITS_PER_WORD
+         || GET_MODE_SIZE (to) > UNITS_PER_WORD)
       && reg_classes_intersect_p (VFP_REGS, rclass))
     return false;
   return true;
index cdce63d00634aa5714af21b564fb1584de351a60..865c85117b8bde4c5a635d77971ac9f40cad3fd6 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-19  Tamar Christina  <tamar.christina@arm.com>
+
+       PR target/84711
+       * gcc.target/arm/big-endian-subreg.c: Delete.
+
 2018-03-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/84931
diff --git a/gcc/testsuite/gcc.target/arm/big-endian-subreg.c b/gcc/testsuite/gcc.target/arm/big-endian-subreg.c
deleted file mode 100644 (file)
index 4b1ab12..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-/* { dg-do compile } */
-/* { dg-require-effective-target arm_neon_ok } */
-/* { dg-require-effective-target arm_hf_eabi } */
-/* { dg-add-options arm_neon } */
-/* { dg-additional-options "-mfp16-format=ieee -mfloat-abi=hard" } */
-
-typedef __fp16 v4f16
-  __attribute__ ((vector_size (8)));
-
-v4f16 fn1 (v4f16 p)
-{
-  return p;
-}