1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 int
5 foo (long x)
6 {
7 return ((short) x != 0) ? x : 1;
8 }
9
10 /* { dg-final { scan-assembler "tst\t(x|w)\[0-9\]+,\[ \t\]*65535" } } */