re PR target/89021 (Implement mmintrin.h in SSE)
authorUros Bizjak <ubizjak@gmail.com>
Wed, 26 Jun 2019 19:12:27 +0000 (21:12 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 26 Jun 2019 19:12:27 +0000 (21:12 +0200)
PR target/89021
* config/i386/i386.c (ix86_autovectorize_vector_sizes):
Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.

testsuite/ChangeLog:

PR target/89021
* lib/target-supports.exp (available_vector_sizes)
<[istarget i?86-*-*] || [istarget x86_64-*-*]>: Add
64-bit vectors for !ia32.

From-SVN: r272711

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index cdfc9f972d4058ca76b0658261b6cc763d047a2d..a27a189670b76235b9f3f624cfa956529751bcef 100644 (file)
@@ -1,3 +1,9 @@
+2019-06-26  Uroš Bizjak  <ubizjak@gmail.com>
+
+       PR target/89021
+       * config/i386/i386.c (ix86_autovectorize_vector_sizes):
+       Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
+
 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
 
        * config/rs6000/rs6000-internal.h (branch_island): New typedef.
index 1ca1712183dce70c236c55d44ad21059c900d95c..7d6280b6da1c788e6ffece1bce93a2b81a3107b7 100644 (file)
@@ -21401,6 +21401,11 @@ ix86_autovectorize_vector_sizes (vector_sizes *sizes, bool all)
       sizes->safe_push (16);
       sizes->safe_push (32);
     }
+  else if (TARGET_MMX_WITH_SSE)
+    sizes->safe_push (16);
+
+  if (TARGET_MMX_WITH_SSE)
+    sizes->safe_push (8);
 }
 
 /* Implemenation of targetm.vectorize.get_mask_mode.  */
index eb9f6cc9921e69535b25126b9b6127dfc10ddab2..e9fade55b671c961af5d7811922fabaa0c994389 100644 (file)
@@ -1,3 +1,10 @@
+2019-06-26  Uroš Bizjak  <ubizjak@gmail.com>
+
+       PR target/89021
+       * lib/target-supports.exp (available_vector_sizes)
+       <[istarget i?86-*-*] || [istarget x86_64-*-*]>: Add
+       64-bit vectors for !ia32.
+
 2019-06-26  Jeff Law  <law@redhat.com>
 
        * gcc.c-torture/execute/builtins/builtins.exp: Add -fno-tree-dse
index 1d4aaa2a87ecb511f860659f49b989022356011d..285c32f8cebb115a72e353673e0f8879314a53b5 100644 (file)
@@ -6603,9 +6603,14 @@ proc available_vector_sizes { } {
     } elseif { [istarget arm*-*-*]
                && [check_effective_target_arm_neon_ok] } {
        lappend result 128 64
-    } elseif { (([istarget i?86-*-*] || [istarget x86_64-*-*])
-                && ([check_avx_available] && ![check_prefer_avx128])) } {
-       lappend result 256 128
+    } elseif { [istarget i?86-*-*] || [istarget x86_64-*-*] } {
+       if { [check_avx_available] && ![check_prefer_avx128] } {
+           lappend result 256
+       }
+       lappend result 128
+       if { ![is-effective-target ia32] } {
+           lappend result 64
+       }
     } elseif { [istarget sparc*-*-*] } {
        lappend result 64
     } else {