Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / adds.c
blobaa423210dec504fa0a2d77237b74b02951bf6dc2
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 int z;
5 int
6 foo (int x, int y)
8 int l = x + y;
9 if (l == 0)
10 return 5;
12 /* { dg-final { scan-assembler "adds\tw\[0-9\]" } } */
13 z = l ;
14 return 25;
17 typedef long long s64;
19 s64 zz;
20 s64
21 foo2 (s64 x, s64 y)
23 s64 l = x + y;
24 if (l < 0)
25 return 5;
27 /* { dg-final { scan-assembler "adds\tx\[0-9\]" } } */
28 zz = l ;
29 return 25;