to avoid warnings.
(main): Adjust caller.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190302
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-08-10 Jakub Jelinek <jakub@redhat.com>
+
+ * gcc.dg/torture/vector-shuffle1.c (f): Pass vectors indirectly
+ to avoid warnings.
+ (main): Adjust caller.
+
2012-08-10 Richard Guenther <rguenther@suse.de>
* gcc.dg/matrix/*.c: Adjust and move ...
typedef int v2si __attribute__((vector_size(2*sizeof(int))));
-v2si f(v2si x)
+void f(v2si *x)
{
/* This requires canonicalization of the mask to { 1, 0 }. */
- return __builtin_shuffle(x,x, (v2si) { 5, 0 });
+ *x = __builtin_shuffle(*x, *x, (v2si) { 5, 0 });
}
int main()
{
- v2si y = f((v2si) { 1, 2 });
+ v2si y = { 1, 2 };
+ f(&y);
if (y[0] != 2 || y[1] != 1)
abort ();
return 0;