re PR tree-optimization/71264 (ICE in convert_move)

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
This commit is contained in:
Richard Biener 2017-01-20 08:01:27 +00:00 committed by Richard Biener
parent b2c06d0530
commit 0516164b36
2 changed files with 7 additions and 0 deletions

View 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> 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
* gcc.target/mips/madd4-1.c: New file. * gcc.target/mips/madd4-1.c: New file.

View File

@ -7,6 +7,8 @@ typedef uint8_t footype __attribute__((vector_size(4)));
void test(uint8_t *ptr, uint8_t *mask) void test(uint8_t *ptr, uint8_t *mask)
{ {
footype mv; footype mv;
ptr = __builtin_assume_aligned (ptr, __alignof__ (footype));
mask = __builtin_assume_aligned (mask, __alignof__ (footype));
__builtin_memcpy(&mv, mask, sizeof(mv)); __builtin_memcpy(&mv, mask, sizeof(mv));
for (unsigned i = 0; i < 16; i += 4) for (unsigned i = 0; i < 16; i += 4)
{ {