re PR tree-optimization/71264 (ICE in convert_move)
authorRichard Biener <rguenther@suse.de>
Fri, 20 Jan 2017 08:01:27 +0000 (08:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 20 Jan 2017 08:01:27 +0000 (08:01 +0000)
2017-01-20  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71264
* gcc.dg/vect/pr71264.c: Make sure memory is aligned.

From-SVN: r244683

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr71264.c

index 65c9ac816c5f1615490725f7468c3b7fcf412179..5e3ac310789fac1b5726041ce6e803b755093d0c 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-20  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/71264
+       * gcc.dg/vect/pr71264.c: Make sure memory is aligned.
+
 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
 
        * gcc.target/mips/madd4-1.c: New file.
index ebee338356e4f8217d76dc1883212826dace6c3d..72d90086ec5982772726520332e539ba926380b4 100644 (file)
@@ -7,6 +7,8 @@ typedef uint8_t footype __attribute__((vector_size(4)));
 void test(uint8_t *ptr, uint8_t *mask)
 {
   footype mv;
+  ptr = __builtin_assume_aligned (ptr, __alignof__ (footype));
+  mask = __builtin_assume_aligned (mask, __alignof__ (footype));
   __builtin_memcpy(&mv, mask, sizeof(mv));
   for (unsigned i = 0; i < 16; i += 4)
     {