RISC-V: Add testcases for signed imm SAT_ADD form1
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr114485.c
blob6536806e350f2bfc1ead3b6d7cd63751b9ad6169
1 #include "tree-vect.h"
3 int b, c = 8, d;
4 int e[23];
5 int main()
7 check_vect ();
9 int *h = e;
10 for (int i = 1; i < b + 21; i += 2)
12 c *= -1;
13 d = h[i] ? i : 0;
15 if (c != 8)
16 abort ();
17 return 0;