2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / g++.dg / vect / pr33860a.cc
blob77e28226a441a2c68a9d71e3acccf38a453572fd
1 /* { dg-do compile } */
2 /* { dg-options "-Wno-psabi" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
4 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
6 class Matrix
8 public:
9 float data[4][4] __attribute__ ((__aligned__(16)));
10 Matrix operator* (const Matrix matrix) const;
11 void makeRotationAboutVector (void);
13 void Matrix::makeRotationAboutVector (void)
15 Matrix irx;
16 *this = irx * (*this);
18 Matrix Matrix::operator* (const Matrix matrix) const
20 Matrix ret;
21 for (int i = 0; i < 4; i++)
22 for (int j = 0; j < 4; j++)
23 ret.data[j][i] = matrix.data[j][2] + matrix.data[j][3];
24 return ret;
27 /* { dg-final { cleanup-tree-dump "vect" } } */