[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / opt-viewer / Inputs / basic / or.c
blob6b1c4744cdacdceefdd1590c65528d4902c40ae9
1 void bar();
2 void foo() { bar(); }
4 #include "or.h"
6 void Test(int *res, int *c, int *d, int *p, int n) {
7 int i;
9 #pragma clang loop vectorize(assume_safety)
10 for (i = 0; i < 1600; i++) {
11 res[i] = (p[i] == 0) ? res[i] : res[i] + d[i];
14 for (i = 0; i < 16; i++) {
15 res[i] = (p[i] == 0) ? res[i] : res[i] + d[i];
18 foo();
20 foo(); bar(); foo();