gcc/testsuite/gcc.dg/vect/pr86749.c
raw| 1 | /* { dg-additional-options "-O3" } */ |
| 2 | |
| 3 | #include "tree-vect.h" |
| 4 | |
| 5 | short a, b, f, g; |
| 6 | int c = 4, d, e = -1L; |
| 7 | long h = 4; |
| 8 | |
| 9 | int |
| 10 | main () |
| 11 | { |
| 12 | check_vect (); |
| 13 | |
| 14 | long i; |
| 15 | for (; d <= 55; d++) |
| 16 | { |
| 17 | g = c >= 2 ? 0 : b << c; |
| 18 | f = g - a; |
| 19 | i = (f ^ 9223372036854775807) < 0 ? f : h; |
| 20 | e &= i; |
| 21 | } |
| 22 | if (e != 4) |
| 23 | __builtin_abort (); |
| 24 | |
| 25 | return 0; |
| 26 | } |