gcc/testsuite/gcc.target/aarch64/pr114674.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 --param=aarch64-stp-policy=aligned" } */ |
| 3 | typedef struct { |
| 4 | unsigned int f1; |
| 5 | unsigned int f2; |
| 6 | } test_struct; |
| 7 | |
| 8 | static test_struct ts = { |
| 9 | 123, 456 |
| 10 | }; |
| 11 | |
| 12 | void foo(void) |
| 13 | { |
| 14 | ts.f2 = 36969 * (ts.f2 & 65535) + (ts.f1 >> 16); |
| 15 | ts.f1 = 18000 * (ts.f2 & 65535) + (ts.f2 >> 16); |
| 16 | } |
| 17 | /* { dg-final { scan-assembler-times "stp" 1 } } */ |