brintos

brintos / llvm-project-archived public Read only

0
0
Text · 441 B · 4ca2369 Raw
18 lines · cpp
1// Regression test for https://bugs.llvm.org/show_bug.cgi?id=375232 3// RUN: %clangxx_msan -O0 %s -o %t && %run %t4// RUN: %clangxx_msan -O3 %s -o %t && %run %t5// REQUIRES: x86_64-target-arch6 7#include <assert.h>8#include <emmintrin.h>9 10int 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);17}18