Ted Kremenek | 1cbc315 | 2011-03-17 03:06:11 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wuninitialized -fsyntax-only %s -verify |
| 2 | |
| 3 | #include <xmmintrin.h> |
| 4 | |
| 5 | void test1(float *input) { |
| 6 | __m128 x, y, z, w, X; // expected-note {{variable 'x' is declared here}} expected-note {{variable 'y' is declared here}} expected-note {{variable 'w' is declared here}} expected-note {{variable 'z' is declared here}} |
| 7 | x = _mm_xor_ps(x,x); // expected-warning {{variable 'x' is possibly uninitialized when used here}} |
| 8 | y = _mm_xor_ps(y,y); // expected-warning {{variable 'y' is possibly uninitialized when used here}} |
| 9 | z = _mm_xor_ps(z,z); // expected-warning {{variable 'z' is possibly uninitialized when used here}} |
| 10 | w = _mm_xor_ps(w,w); // expected-warning {{variable 'w' is possibly uninitialized when used here}} |
| 11 | X = _mm_loadu_ps(&input[0]); |
| 12 | X = _mm_xor_ps(X,X); // no-warning |
| 13 | } |
| 14 | |