1// Regression test for https://bugs.llvm.org/show_bug.cgi?id=37523
2
3// RUN: %clangxx_msan -O0 %s -o %t && %run %t
4// RUN: %clangxx_msan -O3 %s -o %t && %run %t
5// REQUIRES: x86_64-target-arch
6
7#include <assert.h>
8#include <emmintrin.h>
9
10int main() {
11 volatile int scale = 5;
12 volatile auto zz = _mm_div_ps(a: _mm_set1_ps(w: 255), b: _mm_set1_ps(w: scale));
13 assert(zz[0] == 51);
14 assert(zz[1] == 51);
15 assert(zz[2] == 51);
16 assert(zz[3] == 51);
17}
18

source code of compiler-rt/test/msan/vector_div.cpp