1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 /* Check that we avoid moving the immediate into a register
5 if comparison has shown that the inverse or negated form is
6 already in one of the registers. */
11 return a
== 5 ? -5 : b
;
17 return a
!= 5 ? b
: ~5;
20 /* { dg-final { scan-assembler-not "mov\\tw\[0-9\]+" } } */
21 /* { dg-final { scan-assembler-times "csneg\\tw\[0-9\]+" 1 } } */
22 /* { dg-final { scan-assembler-times "csinv\\tw\[0-9\]+" 1 } } */