1 // RUN: %clangxx_msan -O0 %s -o %t && %run %t
2 // RUN: %clangxx_msan -DPOSITIVE -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
3 // REQUIRES: x86_64-target-arch
7 int to_int(double &v
) {
8 __m128d t
= _mm_set_sd(v
);
9 int x
= _mm_cvtsd_si32(t
);
11 // CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value
12 // CHECK: #{{.*}} in to_int{{.*}}vector_cvt.cpp:[[@LINE-3]]
21 double* volatile p
= &v
;