From 0516164b36995f2b1e2cefd30c291b50f9db2064 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 20 Jan 2017 08:01:27 +0000 Subject: [PATCH] re PR tree-optimization/71264 (ICE in convert_move) 2017-01-20 Richard Biener PR tree-optimization/71264 * gcc.dg/vect/pr71264.c: Make sure memory is aligned. From-SVN: r244683 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/vect/pr71264.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 65c9ac816c5..5e3ac310789 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-01-20 Richard Biener + + PR tree-optimization/71264 + * gcc.dg/vect/pr71264.c: Make sure memory is aligned. + 2017-01-19 Matthew Fortune * gcc.target/mips/madd4-1.c: New file. diff --git a/gcc/testsuite/gcc.dg/vect/pr71264.c b/gcc/testsuite/gcc.dg/vect/pr71264.c index ebee338356e..72d90086ec5 100644 --- a/gcc/testsuite/gcc.dg/vect/pr71264.c +++ b/gcc/testsuite/gcc.dg/vect/pr71264.c @@ -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) { -- 2.30.2