[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / subs.c
blob2bf197585dd5fffdeeee8f281b1798d77154afb5
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 "subs\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 "subs\tx\[0-9\]" } } */
28 zz = l ;
29 return 25;