Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / NetBSD / mi_vector_hash.cpp
blob1f6c14848884d90d954f6809be683f3f31186fd5
1 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
3 #include <inttypes.h>
4 #include <stdio.h>
5 #include <stdlib.h>
7 int main(void) {
8 unsigned char key[] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99};
9 uint32_t hashes[3];
10 mi_vector_hash(key, __arraycount(key), 0, hashes);
11 for (size_t i = 0; i < __arraycount(hashes); i++)
12 printf("hashes[%zu]='%" PRIx32 "'\n", i, hashes[i]);
14 // CHECK: hashes[0]='{{.*}}'
15 // CHECK: hashes[1]='{{.*}}'
16 // CHECK: hashes[2]='{{.*}}'
18 return 0;