Commit dcc186d6 by Richard Guenther Committed by Richard Biener

test_passing_unions.c: Avoid undefined array access.

2012-04-18  Richard Guenther  <rguenther@suse.de>

	* gcc.target/x86_64/abi/test_passing_unions.c: Avoid undefined
	array access.
	* gcc.target/x86_64/abi/test_passing_structs.c: Likewise.
	* gcc.target/i386/avx256-unaligned-load-4.c: Fix array sizes.

From-SVN: r186561
parent 6acc8a3c
2012-04-18 Richard Guenther <rguenther@suse.de>
* gcc.target/x86_64/abi/test_passing_unions.c: Avoid undefined
array access.
* gcc.target/x86_64/abi/test_passing_structs.c: Likewise.
* gcc.target/i386/avx256-unaligned-load-4.c: Fix array sizes.
2012-04-17 Tom de Vries <tom@codesourcery.com>
* g++.dg/pr51264-4.C: New test.
......
......@@ -3,7 +3,7 @@
#define N 1024
float a[N], b[N+3];
float a[N+3], b[N];
void
avx_test (void)
......
......@@ -216,7 +216,7 @@ main (void)
for (i = 0; i < 8; i++)
{
m128s[i].x = (__m128){32+i, 0, i, 0};
fregs.xmm0._m128[i] = m128s[i].x;
(&fregs.xmm0)[i]._m128[0] = m128s[i].x;
}
num_fregs = 8;
clear_float_hardware_registers;
......
......@@ -206,7 +206,7 @@ main (void)
for (i = 0; i < 8; i++)
{
u4[i].x = (__m128){32+i, 0, i, 0};
fregs.xmm0._m128[i] = u4[i].x;
(&fregs.xmm0)[i]._m128[0] = u4[i].x;
}
num_fregs = 8;
clear_float_hardware_registers;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment