Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / extswsli-3.c
blobd7e01e13bfefcee220555eef99b2d28472ff3376
1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-require-effective-target powerpc_p9modulo_ok } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
4 /* { dg-options "-mcpu=power9 -O2" } */
6 long
7 do_ext_add (int *p, long a, long b)
9 long l = *p;
10 long l2 = l << 4;
11 return l2 + ((l2 == 0) ? a : b);
14 long
15 do_ext (int *p, long a, long b)
17 long l = *p;
18 long l2 = l << 4;
19 return ((l2 == 0) ? a : b);
22 /* { dg-final { scan-assembler "extswsli\\. "} } */