Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / msan / vector_div.cpp
blob4ca2369d63e6d1fdc48a0c0fb0d7c0e3997e8bc8
1 // Regression test for https://bugs.llvm.org/show_bug.cgi?id=37523
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
7 #include <assert.h>
8 #include <emmintrin.h>
10 int main() {
11 volatile int scale = 5;
12 volatile auto zz = _mm_div_ps(_mm_set1_ps(255), _mm_set1_ps(scale));
13 assert(zz[0] == 51);
14 assert(zz[1] == 51);
15 assert(zz[2] == 51);
16 assert(zz[3] == 51);