Commit f6bd5664 by Richard Biener Committed by Richard Biener

20050604-1.c: Adjust to be a better test for correctness of vector lowering.

2017-09-06  Richard Biener  <rguenther@suse.de>

	* gcc.c-torture/execute/20050604-1.c: Adjust to be a better
	test for correctness of vector lowering.

From-SVN: r251792
parent 1ffbb016
2017-09-06 Richard Biener <rguenther@suse.de>
* gcc.c-torture/execute/20050604-1.c: Adjust to be a better
test for correctness of vector lowering.
2017-09-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/82108
* gcc.dg/vect/pr82108.c: New testcase.
......
......@@ -6,7 +6,7 @@
extern void abort (void);
typedef short v4hi __attribute__ ((vector_size (8)));
typedef unsigned short v4hi __attribute__ ((vector_size (8)));
typedef float v4sf __attribute__ ((vector_size (16)));
union
......@@ -26,7 +26,7 @@ foo (void)
{
unsigned int i;
for (i = 0; i < 2; i++)
u.v += (v4hi) { 12, 14 };
u.v += (v4hi) { 12, 32768 };
for (i = 0; i < 2; i++)
v.v += (v4sf) { 18.0, 20.0, 22 };
}
......@@ -35,7 +35,7 @@ int
main (void)
{
foo ();
if (u.s[0] != 24 || u.s[1] != 28 || u.s[2] || u.s[3])
if (u.s[0] != 24 || u.s[1] != 0 || u.s[2] || u.s[3])
abort ();
if (v.f[0] != 36.0 || v.f[1] != 40.0 || v.f[2] != 44.0 || v.f[3] != 0.0)
abort ();
......
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