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" } */
7 do_ext_add (int *p
, long a
, long b
)
11 return l2
+ ((l2
== 0) ? a
: b
);
15 do_ext (int *p
, long a
, long b
)
19 return ((l2
== 0) ? a
: b
);
22 /* { dg-final { scan-assembler "extswsli\\. "} } */