Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / msan / vector_select.cpp
blob0cf116497801de3fcdaa44109dd11c7f0a5b410c
1 // RUN: %clangxx_msan -O0 %s -c -o %t
2 // RUN: %clangxx_msan -O3 %s -c -o %t
4 // Regression test for MemorySanitizer instrumentation of a select instruction
5 // with vector arguments.
7 #if defined(__x86_64__)
8 #include <emmintrin.h>
10 __m128d select(bool b, __m128d c, __m128d d)
12 return b ? c : d;
14 #elif defined (__mips64) || defined (__powerpc64__)
15 typedef double __w64d __attribute__ ((vector_size(16)));
17 __w64d select(bool b, __w64d c, __w64d d)
19 return b ? c : d;
21 #endif