gcc/testsuite/gcc.dg/tree-ssa/addadd-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O -fdump-tree-optimized" } */ |
| 3 | |
| 4 | typedef int S __attribute__((vector_size(64))); |
| 5 | typedef unsigned U __attribute__((vector_size(64))); |
| 6 | void j(S*x){ |
| 7 | *x += __INT_MAX__; |
| 8 | *x += __INT_MAX__; |
| 9 | } |
| 10 | void k(S*x){ |
| 11 | U y = (U)(*x + __INT_MAX__); |
| 12 | *x = (S)(y + __INT_MAX__); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump "4294967294" "optimized" { target int32plus } } } */ |
| 16 | /* { dg-final { scan-tree-dump-not "2147483647" "optimized" } } */ |