aboutsummaryrefslogtreecommitdiff
path: root/lib/msan/lit_tests/vector_select.cc
blob: e8d55423293c4807b7a5eb12357aa4f51a67a2b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clangxx_msan -m64 -O0 %s -c -o %t
// RUN: %clangxx_msan -m64 -O3 %s -c -o %t

// Regression test for MemorySanitizer instrumentation of a select instruction
// with vector arguments.

#include <emmintrin.h>

__m128d select(bool b, __m128d c, __m128d d)
{
  return b ? c : d;
}