gcc/testsuite/gcc.dg/analyzer/torture/vector-extract-1.c
raw| 1 | /* PR analyzer/113983 */ |
| 2 | /* { dg-additional-options "-Wno-psabi" } */ |
| 3 | |
| 4 | /* maybe_undo_optimize_bit_field_compare used to ICE on this |
| 5 | because it was not checking for only integer types. */ |
| 6 | |
| 7 | typedef int __attribute__((__vector_size__(8))) V; |
| 8 | int i; |
| 9 | |
| 10 | V |
| 11 | foo(void) |
| 12 | { |
| 13 | V v = (V){}; |
| 14 | return (0, 0) * (i & v); |
| 15 | } |